Re: ANY

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ANY
Дата
Msg-id 390.1189104933@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ANY  (Alban Hertroys <alban@magproductions.nl>)
Ответы Re: ANY  (Alban Hertroys <alban@magproductions.nl>)
Список pgsql-general
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.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Need suggestion on how best to update 3 million rows
Следующее
От: Tom Lane
Дата:
Сообщение: Re: a provocative question?