Re: comparing nulls

From: Christopher Browne <cbbrowne(at)acm(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: comparing nulls
Date: 2004-01-20 16:06:51
Message-ID: m3oesybo4k.fsf@wolfe.cbbrowne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Centuries ago, Nostradamus foresaw when lawgon(at)thenilgiris(dot)com (Kenneth Gonsalves) would write:
> On Tuesday 20 January 2004 19:26, Chris Bowlby wrote:
>> Under 7.3.x this option was removed, you need to test via:
>>
>> SELECT * from table where field IS NULL;
> thanx - works in both 7.1 and 7.3 - why do these guys keep fooling around
> with these thangs?

Because there is a desire to have PostgreSQL conform with public
standards such as SQL-1999.

The use of "IS NULL" conforms with SQL standards; the use of "= NULL"
does not.
--
If this was helpful, <http://svcs.affero.net/rm.php?r=cbbrowne> rate me
http://www3.sympatico.ca/cbbrowne/advocacy.html
"Let's face it -- ASCII text is a far richer medium than most of us
deserve." -- Scott McNealy

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Joe Conway 2004-01-20 16:13:17 Re: Fetching a single column from a record returning function
Previous Message Tom Lane 2004-01-20 15:58:04 Re: Fetching a single column from a record returning function