Re: [GENERAL] null and = - Mailing list pgsql-general

From Herbert Liechti
Subject Re: [GENERAL] null and =
Date
Msg-id 384AB628.FBC93E1D@thinx.ch
Whole thread Raw
In response to null and =  (Slavica Stefic <izvori@iname.com>)
List pgsql-general
Slavica Stefic wrote:


> is null = null true or also null?

A null value represents either the absence of data or
an unknown value. A null value is not
the same as a zero or a blank.

Thus two tuples with null values are never the same and can not
be joined.

> it appears that two null records are not equal if they are both null.
> First question: is this correct? is this SQL conformant?

yes

>         2:  if I change the sources for the operator to compare nulls as
> they where values
>                 will it have too many side effects?

Don't do that. You will get a desaster ;-)

Herbie

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Herbert Liechti                     E-Mail: Herbert.Liechti@thinx.ch
ThinX networked business services        Stahlrain 10, CH-5200 Brugg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

pgsql-general by date:

Previous
From: Slavica Stefic
Date:
Subject: null and =
Next
From: "Jason C. Leach"
Date:
Subject: procmail w/ PG.