Re:

Поиск
Список
Период
Сортировка
От Yury Bokhoncovich
Тема Re:
Дата
Msg-id Pine.LNX.4.33.0203112024130.5154-100000@panda.center-f1.ru
обсуждение исходный текст
Ответ на ...  (Bhuvan A <bhuvansql@yahoo.com>)
Список pgsql-bugs
Hello!

On Mon, 11 Mar 2002, Bhuvan A wrote:

[skip]
> > If you compare a NULL with anything you don't get a true value whether
> > you're comparing with =, !=, <, >, etc...  That's how it's defined to
> > behave.
>
> where did you get this definition of behaviour!? is it applicable only to
> postgres or ..?  its quite strange yaar!

it's standard SQL:
true and true gives true
true and false gives false
null and true gives null
null and false gives null

RTFM! Quick check on MySQL and MSSQL gives the same results.
AFAIK Interbase and Oracle behaves similarly.
So theory is confirmed by practice.
It is very amazing to listen about contrary thing, could you please tell
where you saw this?

--
WBR, Yury Bokhoncovich, Senior System Administrator, NOC of F1 Group.
Phone: +7 (3832) 106228, ext.140, E-mail: byg@center-f1.ru.
Unix is like a wigwam -- no Gates, no Windows, and an Apache inside.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bug #611: configure script produces incorrect results under IRIX
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: