Re: Can't join on null values

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Can't join on null values
Дата
Msg-id Pine.LNX.4.44.0407072137470.10835-100000@kix.fsv.cvut.cz
обсуждение исходный текст
Ответ на Can't join on null values  (David Newall <davidn-postgres@rebel.net.au>)
Ответы Re: Can't join on null values  (Peter Eisentraut <peter_e@gmx.net>)
Re: Can't join on null values  (davidn-postgres@rebel.net.au)
Список pgsql-bugs
Hello,

its not error. Only SQL specific :-) NULL <> NULL

Regards
Pavel Stehule

On Tue, 6 Jul 2004, David Newall wrote:

> PostgreSQL version:  7.4.3 (RPMs from ftp.au.postgresql.org)
>
> Operating Sysem: Fedora Core 1
>
> CREATE TABLE t1 (i INTEGER, j INTEGER);
> INSERT INTO t1 VALUES (1, NULL);
> CREATE TABLE t2 AS SELECT * FROM t1;
> SELECT * FROM t1 JOIN t2 USING (i, j);
>  i | j
> ---+---
> (0 rows)
>
> I believe the one row, which is identically present in both table,
> should be selected.  The problem occurs because of the NULL value.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly
>

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: UNIQUE not honoured for NULL
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Can't join on null values