Re: NULL != text ? - Mailing list pgsql-general

From Michael Glaesemann
Subject Re: NULL != text ?
Date
Msg-id 671666AF-2054-4CF6-837D-83E23C2C1FB3@myrealbox.com
Whole thread Raw
In response to Re: NULL != text ?  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
On Oct 20, 2005, at 23:45 , Michael Fuhr wrote:

> 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.

Thanks!

Michael Glaesemann
grzm myrealbox com




pgsql-general by date:

Previous
From: han.holl@informationslogik.nl
Date:
Subject: Strange order of execution with rule
Next
From: Richard_D_Levine@raytheon.com
Date:
Subject: Re: [HACKERS] 'a' == 'a '