Re: Is NULL equal to NULL or not? - Mailing list pgsql-general

From Mike Mascari
Subject Re: Is NULL equal to NULL or not?
Date
Msg-id 3DF52206.5060507@mascari.com
Whole thread Raw
In response to Re: Is NULL equal to NULL or not?  ("scott.marlowe" <scott.marlowe@ihs.com>)
Responses Re: Is NULL equal to NULL or not?
List pgsql-general
scott.marlowe wrote:
> On Mon, 9 Dec 2002 jco@cornelius-olsen.dk wrote:

>>I've noticed that
>>        select NULL=NULL;
>>yields TRUE. It is also possible to select rows in this manner.
>
>
> That's NOT because null EQUALS null, but because it allowed you to assign
> one null value to another.  which technically can be done, so it came out
> true.

It *is* because null EQUALS null, on version 7.1. '=' is the
comparison operator. ':=' is the PL/pgSQL assignment operator.
Older versions of PostgreSQL allowed comparisons between NULLs
for compatibility with older versions of Access.

Mike Mascari



pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: MD5 question?
Next
From: Rich Shepard
Date:
Subject: Re: Is NULL equal to NULL or not?