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
обсуждение исходный текст
Ответ на selecting all records where a column is null  ("Elmshauser, Erik" <erike@pbgnw.com>)
Список 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 по дате отправления:

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: db grows and grows
Следующее
От: "Dave Page"
Дата:
Сообщение: foreign Key problem