Re: NULL != text ?

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: CSN <cool_screen_name90001(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: NULL != text ?
Date: 2005-10-20 21:12:32
Message-ID: 671666AF-2054-4CF6-837D-83E23C2C1FB3@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2005-10-20 21:32:09 Re: Checking Multiplicity Constraints and Retrieving
Previous Message Richard_D_Levine 2005-10-20 21:11:58 Re: [HACKERS] 'a' == 'a '