Re: NULL in IN clause

Поиск
Список
Период
Сортировка
Искать
От
David Dick
Тема
Re: NULL in IN clause
Дата
Msg-id
4356B00C.2040702@iprimus.com.au
Ответ на
NULL in IN clause (Havasvölgyi Ottó)
Список
Дерево обсуждения
"Shavonne Marietta Wijesinghe" <shavonne.marietta@studioform.it>
Re: Scott Marlowe <smarlowe@g2switchworks.com>
As i understand it, the use of NULL in SQL means the value of the column 
is unknown.  Therefore that result would seem fair.

Havasvölgyi Ottó wrote:
> Hi,
> 
> I have just run this command on 8.0.4 :
> 
> SELECT 'foo' WHERE 0 NOT IN (NULL, 1);
> 
> And it resulted is zero rows.
> Without NULL it is OK.
> Is this a bug, or the standard has such a rule?
> 
> Best Regards,
> Otto
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
> 
>               http://archives.postgresql.org
> 


В списке pgsql-sql по дате отправления
От: Terry Fielder
Дата:
Сообщение: Re: NULL in IN clause
От: Tom Lane
Дата:
Сообщение: Re: NULL in IN clause
FAQ