Re: select, where and null-values (or: select null<>'1' is fuzzy)

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: select, where and null-values (or: select null<>'1' is fuzzy)
Дата
Msg-id Pine.BSF.4.21.0106121112360.54033-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на select, where and null-values (or: select null<>'1' is fuzzy)  (Peter Pilsl <pilsl@goldfisch.at>)
Список pgsql-general
> I've a problem when selecting values out a table.

It's correct.  NULL<>1 is defined as NULL by the spec.
Where clauses only return rows that the expression is true
and so will not return the NULL row.

If you want the null rows to show up, you'll need to either
use coalesce or add or blah IS NULL to the expression.



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

Предыдущее
От: "Thalis A. Kalfigopoulos"
Дата:
Сообщение: Re: Format of BOOLEAN
Следующее
От: "Thalis A. Kalfigopoulos"
Дата:
Сообщение: Re: [newbie] Relations...