Re: How NULL is interpreted in Pgsql - Mailing list pgsql-sql

From Tom Lane
Subject Re: How NULL is interpreted in Pgsql
Date
Msg-id 1156.989935962@sss.pgh.pa.us
Whole thread Raw
In response to How NULL is interpreted in Pgsql  (Guru Prasad <pnguruji@yahoo.com>)
List pgsql-sql
Guru Prasad <pnguruji@yahoo.com> writes:
> 'select * from junk where id != 11';
> To my surprise, it displayed all the records except those which had
> 'NULL' in the 'id' field.

This is correct per spec: NULL is not a value and it doesn't act like one.
See any discussion of SQL NULLs --- Bruce's book talks about this IIRC,
or we've been over the turf more than once in the mailing list archives.
        regards, tom lane


pgsql-sql by date:

Previous
From: Karel Zak
Date:
Subject: Re: Case insensitive string comparison?
Next
From: "Laurent Duperval"
Date:
Subject: varbit question