Re: How NULL is interpreted in Pgsql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How NULL is interpreted in Pgsql
Дата
Msg-id 1156.989935962@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How NULL is interpreted in Pgsql  (Guru Prasad <pnguruji@yahoo.com>)
Список pgsql-sql
Guru Prasad <pnguruji@yahoo.com> writes:
> 'select * from junk where id != 11';
> To my surprise, it displayed all the records except those which had
> 'NULL' in the 'id' field.

This is correct per spec: NULL is not a value and it doesn't act like one.
See any discussion of SQL NULLs --- Bruce's book talks about this IIRC,
or we've been over the turf more than once in the mailing list archives.
        regards, tom lane


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

Предыдущее
От: Karel Zak
Дата:
Сообщение: Re: Case insensitive string comparison?
Следующее
От: "Laurent Duperval"
Дата:
Сообщение: varbit question