Re: Re: Does PostgreSQL support EXISTS?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: Does PostgreSQL support EXISTS?
Дата
Msg-id 26422.992444558@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Does PostgreSQL support EXISTS?  (Raymond Chui <raymond.chui@noaa.gov>)
Ответы Re: Re: Does PostgreSQL support EXISTS?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-general
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I thought NOT IN was the only one that was concerned about any NULL?

No, they both are: in the presence of NULLs, IN can return TRUE or NULL,
NOT IN can return FALSE or NULL.

The reason the FAQ is always about NOT NULL is that WHERE treats NULL as
FALSE, so the average newbie writing an IN doesn't even realize he's
getting a NULL rather than a FALSE.  With NOT NULL, he can't ignore it.

            regards, tom lane

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

Предыдущее
От: "Keith G. Murphy"
Дата:
Сообщение: Re: Text data type doesn't accept newlines?
Следующее
От: Alex Pilosov
Дата:
Сообщение: Re: PLPGSQL: Using Transactions and locks