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

From Stephan Szabo
Subject Re: select, where and null-values (or: select null<>'1' is fuzzy)
Date
Msg-id Pine.BSF.4.21.0106121112360.54033-100000@megazone23.bigpanda.com
Whole thread Raw
In response to select, where and null-values (or: select null<>'1' is fuzzy)  (Peter Pilsl <pilsl@goldfisch.at>)
List 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 by date:

Previous
From: "Thalis A. Kalfigopoulos"
Date:
Subject: Re: Format of BOOLEAN
Next
From: "Thalis A. Kalfigopoulos"
Date:
Subject: Re: [newbie] Relations...