Search Postgresql Archives

Re: NULL value comparison

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/22/2012 06:23 AM, Michael Sacket wrote:
Good Day,

I'm trying to figure out why a postgresql query doesn't return what I'd expect with a query like this where there are NULL values:

select * from users where is_enabled<>'Y';

I'm expecting it to return all records where is_enabled is 'N' or NULL.  Perhaps my expectations are misguided.  Any thoughts would be appreciated.

See below for explanation:
http://www.postgresql.org/docs/9.1/interactive/functions-comparison.html


Thanks!
Michael




--
Adrian Klaver
adrian.klaver@xxxxxxxxx


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux