From: | terry(at)greatgulfhomes(dot)com |
---|---|
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 20:40:38 |
Message-ID: | 003901c2189a$bd5fd640$2766f30a@development.greatgulfhomes.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
select * from table where field IS NULL;
Terry Fielder
Network Engineer
Great Gulf Homes / Ashton Woods Homes
terry(at)greatgulfhomes(dot)com
> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of
> Elmshauser, Erik
> Sent: Thursday, June 20, 2002 2:47 PM
> 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;
>
> and some other stuff the is way more broken. I have flipped
> through the
> docs a bit but I haven't found anything useful yet. If someone could
> point me to the right place in the docs or give me an example of a
> select that will do this I would be very grateful.
> --Erik
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
Attachment | Content-Type | Size |
---|---|---|
winmail.dat | application/ms-tnef | 2.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-06-20 20:44:59 | Re: Yet another "Why won't PostgreSQL use my index?" |
Previous Message | Scott Marlowe | 2002-06-20 20:19:52 | Re: selecting all records where a column is null |