Re: NULLs ;-)

Поиск
Список
Период
Сортировка
От John D. Burger
Тема Re: NULLs ;-)
Дата
Msg-id BA11E4CF-9E04-4F35-AFA2-81B81AB5D084@mitre.org
обсуждение исходный текст
Ответ на NULLs ;-)  (Scott Ribe <scott_ribe@killerbytes.com>)
Ответы Re: NULLs ;-)  (Ragnar <gnari@hive.is>)
Список pgsql-general
Scott Ribe wrote:

> where a <> b or (a is null and b is not null) or (a is not null and
> b is null)

In the absence of IS DISTINCT FROM, I think this has the same semantics:

   where coalesce(a, b) <> coalesce(b, a)

although it's not as concise as one might wish.

- John D. Burger
   MITRE

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: IN clause
Следующее
От: "Michael Nolan"
Дата:
Сообщение: Re: How to increace nightly backup speed