Re: no value fetch

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: no value fetch
Дата
Msg-id 20040727204709.E28969@megazone.bigpanda.com
обсуждение исходный текст
Ответ на no value fetch  (BRINER Cedric <work@infomaniak.ch>)
Ответы Re: no value fetch  (jseymour@linxnet.com (Jim Seymour))
Список pgsql-general
On Tue, 27 Jul 2004, BRINER Cedric wrote:

> hi,
>
> Imagine that I have the following table where ts_sent is a timestamp(0)
>
> select * from notification;
>       to_used        | ts_sent                 |   from
> ---------------------+-------------------------+---------
>  amanda@obs.unige.ch |  2004-07-21 14:19:43+02 | amanda
>  amanda@obs.unige.ch |                         | postgres
>
> and so, how do I do to fetch the second line by asking :
> catch me the line where ts_sent doesn't have a value !
>
> I've try:
> select * from notification where ts_sent = null ;

Use ts_sent IS NULL, not ts_sent = null.

Pretty much, <anything> = null returns null.


В списке pgsql-general по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Perl DBI and nested transaction?
Следующее
От: Robby Russell
Дата:
Сообщение: Re: Trigger on Postgres for tables syncronization