Re: NULLs ;-)

From: "John D(dot) Burger" <john(at)mitre(dot)org>
To: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: NULLs ;-)
Date: 2006-11-28 14:42:38
Message-ID: BA11E4CF-9E04-4F35-AFA2-81B81AB5D084@mitre.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

  • NULLs ;-) at 2006-11-28 00:37:53 from Scott Ribe

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Nolan 2006-11-28 15:19:56 Re: How to increace nightly backup speed
Previous Message Martijn van Oosterhout 2006-11-28 14:01:55 Re: IN clause