Re: array weirdity

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: array weirdity
Дата
Msg-id 4A9FC39B.40001@archonet.com
обсуждение исходный текст
Ответ на array weirdity  (Sim Zacks <sim@compulab.co.il>)
Список pgsql-general
Sim Zacks wrote:
> How can these both be true? Is there a way to see if a value is not in
> an array?
>
>
> select 1229 <> any('{1220,0,0,1228,1229,1231,0,0,0}'::int[]) as result
>
> result
> -------
> t

Not "any()", "all()" - it *is* different from some of the numbers there.

--
  Richard Huxton
  Archonet Ltd

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

Предыдущее
От: Sim Zacks
Дата:
Сообщение: array weirdity
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: array weirdity