Re: execute incorect query and get data

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: execute incorect query and get data
Дата
Msg-id 21281.1166113432@sss.pgh.pa.us
обсуждение исходный текст
Ответ на execute incorect query and get data  (Marek Wróbel <mwrobel@icentrum.pl>)
Ответы Re: execute incorect query and get data  (Marek Wróbel <mwrobel@icentrum.pl>)
Список pgsql-bugs
Marek Wróbel <mwrobel@icentrum.pl> writes:
> create table a (a1 integer);
> create table b (b1 integer);
> insert into a (a1) values (1);
> insert into a (a1) values (2);
> select a1 from b;
> ERROR:  column "a1" does not exist at character 8
> but :
> select a1 from a where a1 not in (select a1 from b);

This is not a bug, it's an outer reference.  Read any SQL book ...
        regards, tom lane


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

Предыдущее
От: Marek Wróbel
Дата:
Сообщение: execute incorect query and get data
Следующее
От: Zdenek Kotala
Дата:
Сообщение: Re: Compiling problem on Solaris