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

From Dave Page
Subject Re: selecting all records where a column is null
Date
Msg-id D85C66DA59BA044EB96AB9683819CF610153DE@dogbert.vale-housing.co.uk
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: Elmshauser, Erik [mailto:erike@pbgnw.com]
> Sent: 20 June 2002 19:47
> To: pgsql-general@postgresql.org
> Subject: [GENERAL] selecting all records where a column is null
>
>
> Hi, I am trying to select every record from a table where a
> specific column does not have a value in it yet.  Is there a
> way to express that in a SQL statement?  Here are the few I tried:
>
> select * from table where field;
> select * from table where field = '';
> select * from table where field = NULL;

select * from table where field IS NULL;

Regards, Dave.

pgsql-general by date:

Previous
From: Robert Treat
Date:
Subject: Re: db grows and grows
Next
From: "Dave Page"
Date:
Subject: foreign Key problem