Re: NULL value comparison - Mailing list pgsql-general

From Adrian Klaver
Subject Re: NULL value comparison
Date
Msg-id 5034DF06.8000801@gmail.com
Whole thread Raw
In response to NULL value comparison  (Michael Sacket <msacket@gammastream.com>)
List pgsql-general
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
NULLvalues: 
>
> 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
thoughtswould be appreciated. 

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

>
> Thanks!
> Michael
>



--
Adrian Klaver
adrian.klaver@gmail.com


pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: NULL value comparison
Next
From: David Johnston
Date:
Subject: Re: NULL value comparison