Re: NULL != text ?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Michael Glaesemann <grzm(at)myrealbox(dot)com>
Cc: CSN <cool_screen_name90001(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: NULL != text ?
Date: 2005-10-20 14:45:12
Message-ID: 20051020144512.GA78854@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Oct 20, 2005 at 03:57:41PM +0900, Michael Glaesemann wrote:
> On Oct 20, 2005, at 15:44 , Michael Fuhr wrote:
> > expression IS DISTINCT FROM expression
> >
> > For non-null inputs this is the same as the <> operator. However,
> > when both inputs are null it will return false, and when just one
> > input is null it will return true. Thus it effectively acts as
> > though null were a normal data value, rather than "unknown".
>
> Interesting! Thanks, Michael. You don't happen to know off the top of
> your head if that's standard SQL, do you?

IS DISTINCT FROM is defined in SQL:1999 and SQL:2003.

--
Michael Fuhr

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lincoln Yeoh 2005-10-20 14:47:00 Re: [HACKERS] 'a' == 'a '
Previous Message Richard Huxton 2005-10-20 14:34:37 Re: NEW in Rule makes another nextval call?