| From: | "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> |
|---|---|
| To: | "Elmshauser, Erik" <erike(at)pbgnw(dot)com>, <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: selecting all records where a column is null |
| Date: | 2002-06-20 19:57:21 |
| Message-ID: | D85C66DA59BA044EB96AB9683819CF610153DE@dogbert.vale-housing.co.uk |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
> -----Original Message-----
> From: Elmshauser, Erik [mailto:erike(at)pbgnw(dot)com]
> Sent: 20 June 2002 19:47
> To: pgsql-general(at)postgresql(dot)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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Treat | 2002-06-20 19:57:38 | Re: db grows and grows |
| Previous Message | Manfred Koizar | 2002-06-20 19:56:59 | Re: selecting all records where a column is null |