Re: selecting all records where a column is null

From: "Elmshauser, Erik" <erike(at)pbgnw(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: selecting all records where a column is null
Date: 2002-06-20 21:25:53
Message-ID: 0FD2E5E35F0C0D41AEA66C9C6F39F30D3CB4@HERMES.pbgnw.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

-----Original Message-----
From: Fran Fabrizio [mailto:ffabrizio(at)mmrd(dot)com]
Sent: Thursday, June 20, 2002 12:49 PM
To: Elmshauser, Erik; pgsql-general(at)postgresql(dot)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

Browse pgsql-general by date

  From Date Subject
Next Message terry 2002-06-20 21:33:28 Re: db grows and grows
Previous Message Bruce Momjian 2002-06-20 21:19:58 Re: pltcl bug in 7.2?