Re: Equality operators on NULL values

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Equality operators on NULL values
Дата
Msg-id Pine.LNX.4.44.0308241041560.1170-100000@peter.localdomain
обсуждение исходный текст
Ответ на Equality operators on NULL values  (Bertrand Petit <pgsql-sql@phoe.frmug.org>)
Список pgsql-sql
Bertrand Petit writes:

>         NULL=NULL ==> t
>         1=NULL    ==> NULL (or anything else as long as it is not t)
>         1=1       ==> t
>         1=2       ==> f

>     Is there a stock replacement operator that would behave like
> the second truth table?

No, but why not write

(a = b) or (a is null and b is null)

-- 
Peter Eisentraut   peter_e@gmx.net



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

Предыдущее
От: Bertrand Petit
Дата:
Сообщение: Equality operators on NULL values
Следующее
От: Jamie Lawrence
Дата:
Сообщение: Re: Auto-update a field when record is changed