Re: selecting all records where a column is null - Mailing list pgsql-general

From Elmshauser, Erik
Subject Re: selecting all records where a column is null
Date
Msg-id 0FD2E5E35F0C0D41AEA66C9C6F39F30D3CB4@HERMES.pbgnw.com
Whole thread Raw
In response to selecting all records where a column is null  ("Elmshauser, Erik" <erike@pbgnw.com>)
List pgsql-general
-----Original Message-----
From: Fran Fabrizio [mailto:ffabrizio@mmrd.com]
Sent: Thursday, June 20, 2002 12:49 PM
To: Elmshauser, Erik; pgsql-general@postgresql.org
Subject: Re: [GENERAL] selecting all records where a column is null

select * from table where field is null;

is rather than =.  Since null is undefined, it's not appropriate to test

for equality to null.

-Fran


Thanks to everybody who replied, that's exactly what I needed.
    --Erik

pgsql-general by date:

Previous
From: terry@greatgulfhomes.com
Date:
Subject: Re: db grows and grows
Next
From: Bruce Momjian
Date:
Subject: Re: pltcl bug in 7.2?