Re: null vs empty string

Поиск
Список
Период
Сортировка
От Rob Richardson
Тема Re: null vs empty string
Дата
Msg-id 04A6DB42D2BA534FAC77B90562A6A03D01465CFF@server.rad-con.local
обсуждение исходный текст
Ответ на null vs empty string  (Kent Thomas <kent@solarbee.com>)
Список pgsql-novice
The big thing to keep in mind when working with nulls is that NULL does
not mean that there is nothing in the field.  NULL means that the
database does not know what is in the field.  So, the only way to base a
selection on whether or not a field is NULL is to use the ISNULL()
function.  Also, no comparison with NULL will ever return true.  A query
like "SELECT * FROM SomeTable WHERE NULL = NULL" will return no records.
Since the database does not know what is in a NULL-valued field, it
cannot be confident that one such field is equal to another, and since
it's not confident, it has to return false.

RobR

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

Предыдущее
От: Kent Thomas
Дата:
Сообщение: null vs empty string
Следующее
От: Thom Brown
Дата:
Сообщение: Re: null vs empty string