Re: ANY

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: ANY
Дата
Msg-id 46E68D7A.2050306@magproductions.nl
обсуждение исходный текст
Ответ на Re: ANY  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Alban Hertroys <alban@magproductions.nl> writes:
>> Richard Huxton wrote:
>>> AFAIK there are two variants of ANY()
>>> 1. sets
>>> 2. arrays
>>>
>>> So you should be able to do:
>>> ... WHERE x = ANY( ARRAY[a, b, c] )
>
>> But then the documentation isn't entirely correct. It suggests that it
>> works similar to IN, but it doesn't.
>
> The subquery variants (section 9.19) do work the same.  There is nothing
> on the other page (9.20) making such a comparison.

Oh right, there are 2 sections about those expressions... Never noticed
that there was "9.16. Subquery Expressions" and "9.17. Row and Array
Comparisons" listing the same expressions.

(Apparently there are 2 more sections before it in your documentation)

--
Alban Hertroys
alban@magproductions.nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
   7500 AK Enschede

// Integrate Your World //

В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Partial index with regexp not working
Следующее
От: Franz.Rasper@izb.de
Дата:
Сообщение: Re: Hardware recommendation: which is best