Re: selecting all records where a column is null

Поиск
Список
Период
Сортировка
Искать
От
Dave Page
Тема
Re: selecting all records where a column is null
Дата
Msg-id
D85C66DA59BA044EB96AB9683819CF610153DE@dogbert.vale-housing.co.uk
Список
Дерево обсуждения
Re: selecting all records where a column is null "Dave Page" <dpage@vale-housing.co.uk>


> -----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 по дате отправления
От: Robert Treat
Дата:
Сообщение: Re: db grows and grows
От: Dave Page
Дата:
Сообщение: foreign Key problem
FAQ