Re: Dates and NULL's`

Поиск
Список
Период
Сортировка
От Brent Dombrowski
Тема Re: Dates and NULL's`
Дата
Msg-id 7E925851-8A86-4922-87D4-88F37F86C101@gmail.com
обсуждение исходный текст
Ответ на Dates and NULL's`  (John Fabiani <johnf@jfcomputer.com>)
Ответы Re: Dates and NULL's`
Список pgsql-sql
On May 10, 2011, at 9:48 AM, John Fabiani wrote:

> Hi,
> Maybe this is a dumb question but if I have a date field that contains a NULL
> will it show up when I ask for a where date range for the same date field.
>
> Where mydate >= "2011/04/01"::date and mydate<= "2011/04/30"::date
>
> With the above where will the NULL's be selected????
>
> I ask because I was always told that a NULL matches everything and nothing!
>
> Johnf
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql


The NULLs will not be included. NULL matches nothing, not even itself.

Brent D.



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

Предыдущее
От: Emi Lu
Дата:
Сообщение: Re: Dates and NULL's`
Следующее
От: Emi Lu
Дата:
Сообщение: Re: Dates and NULL's`