From: Tom Lane <tgl@sss.pgh.pa.us>
To: Guru Prasad <pnguruji@yahoo.com>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: How NULL is interpreted in Pgsql
Date: Tue, 15 May 2001 10:12:42 -0400
Message-ID: <1156.989935962@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.20.0105151323560.16374-100000@Larry.bks>
References: <Pine.LNX.4.20.0105151323560.16374-100000@Larry.bks>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, pnguruji@yahoo.com
Subject: Re: How NULL is interpreted in Pgsql
In-Reply-To: <1156.989935962@sss.pgh.pa.us>
References: <Pine.LNX.4.20.0105151323560.16374-100000@Larry.bks> <1156.989935962@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox