Re: [HACKERS] Open 6.5 items - Mailing list pgsql-hackers

From ZEUGSWETTER Andreas IZ5
Subject Re: [HACKERS] Open 6.5 items
Date
Msg-id 219F68D65015D011A8E000006F8590C60267B36C@sdexcsrv1.f000.d0188.sd.spardat.at
Whole thread Raw
Responses Re: [HACKERS] Open 6.5 items  ("D'Arcy" "J.M." Cain <darcy@druid.net>)
Re: [HACKERS] Open 6.5 items  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
> Allow "col AS name" to use name in WHERE clause?  Is this ANSI? 
>     Works in GROUP BY
> 
Neighter Informix nor Oracle do it, so it is probably not ansi, but it would

be a very neat feature, especially if you do some arithmetic, 
the statement gets a lot clearer.

But it probably adds some complexity:

create table a (a int, b int, c int);
select a, b as c from a where c=5; 

Which c do you use alias or column ? You prbly need to use the column, 
since this is how all others work, but would this be intuitive ?

Andreas


pgsql-hackers by date:

Previous
From: "D'Arcy" "J.M." Cain
Date:
Subject: Re: [HACKERS] PyGreSQL 2.4
Next
From: Thomas Lockhart
Date:
Subject: Re: [HACKERS] I thought this was picked up ages ago?