Skip site navigation (1) Skip section navigation (2)

Re: null != null ???

From: "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net>
To: Fran Fabrizio <ffabrizio(at)mmrd(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: null != null ???
Date: 2001-10-26 18:37:10
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
On Fri, 26 Oct 2001, Fran Fabrizio wrote:

> I have a situation where the left and right side of a where clause both
> evaluate to null independently, but when compared to
> each other, they don't equate.  Observe:

It seems to me that a null value cannot be compared to a null value
because NULL means 'no value' -- it would be like comparing two undefined
variables in Perl (undef) or two NULL pointers in C.  It will never be
true because you can't equate nothing to nothing.

-- Brett
God created a few perfect heads.  The rest he covered with hair.

In response to

pgsql-general by date

Next:From: Paulo JanDate: 2001-10-26 18:48:06
Subject: Optimizing a complex query (long)
Previous:From: Josh BerkusDate: 2001-10-26 18:31:16
Subject: Re: GUID in postgres

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group