Re: NULLS and User Input WAS Re: multimaster

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: NULLS and User Input WAS Re: multimaster
Дата
Msg-id 87d507n8zq.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: NULLS and User Input WAS Re: multimaster  (Lew <lew@nospam.lewscanon.com>)
Список pgsql-general
"Lew" <lew@nospam.lewscanon.com> writes:

> Where NULL differs is that (NULL = NULL) is FALSE, and (NULL != NULL) is FALSE.

No, that's not true. NULL=NULL is NULL. And NULL!=NULL is NULL as well. Ie,
it's exactly as your table describes.

The confusion comes because WHERE clauses treat NULL the same as they treat
FALSE, ie, they exclude the row. But unless you can come up with a way for a
SELECT clause to not tell you whether it's including a row or not (ie, whether
it includes the row is "unknown") then it's got to pick one or the other.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: Samatha Kottha
Дата:
Сообщение: setting login database
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: setting login database