dbTalk Databases Forums  

Re: [BUGS] execute incorect query and get data

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] execute incorect query and get data in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] execute incorect query and get data - 12-14-2006 , 10:25 AM






=?ISO-8859-2?Q?Marek_Wr=F3bel?= <mwrobel (AT) icentrum (DOT) pl> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.