![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
PostgreSQL version: 7.4.3 (RPMs from ftp.au.postgresql.org) Operating Sysem: Fedora Core 1 CREATE TABLE t(i integer UNIQUE); INSERT INTO t VALUES (null); INSERT INTO t VALUES (null); SELECT coalesce(i,-999) FROM t; coalesce ---------- -999 -999 (2 rows) |
#3
| |||
| |||
|
|
PostgreSQL version: 7.4.3 (RPMs from ftp.au.postgresql.org) Operating Sysem: Fedora Core 1 CREATE TABLE t(i integer UNIQUE); INSERT INTO t VALUES (null); INSERT INTO t VALUES (null); SELECT coalesce(i,-999) FROM t; coalesce ---------- -999 -999 (2 rows) |
#4
| |||
| |||
|
|
PostgreSQL version: 7.4.3 (RPMs from ftp.au.postgresql.org) Operating Sysem: Fedora Core 1 CREATE TABLE t(i integer UNIQUE); INSERT INTO t VALUES (null); INSERT INTO t VALUES (null); SELECT coalesce(i,-999) FROM t; coalesce ---------- -999 -999 (2 rows) |
#5
| |||
| |||
|
|
As someone says NULL = NULL is false |
#6
| |||
| |||
|
|
On Mon, Jul 12, 2004 at 14:47:34 +0200, Gaetano Mendola <mendola (AT) bigfoot (DOT) com> wrote: As someone says NULL = NULL is false As someone else pointed out, NULL = NULL is NULL which is not TRUE. |
#7
| |||
| |||
|
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bruno Wolff III wrote: | On Mon, Jul 12, 2004 at 14:47:34 +0200, | Gaetano Mendola <mendola (AT) bigfoot (DOT) com> wrote: | |>As someone says NULL = NULL is false | | | As someone else pointed out, NULL = NULL is NULL which is not TRUE. Yes, that it's better. |
![]() |
| Thread Tools | |
| Display Modes | |
| |