Re: Converting from MS Access field aliases - Mailing list pgsql-sql

From Tom Lane
Subject Re: Converting from MS Access field aliases
Date
Msg-id 13141.1184280511@sss.pgh.pa.us
Whole thread Raw
In response to Re: Converting from MS Access field aliases  (Adam Tauno Williams <adamtaunowilliams@gmail.com>)
List pgsql-sql
Adam Tauno Williams <adamtaunowilliams@gmail.com> writes:
> On Thu, 2007-07-12 at 13:23 -0400, Tom Lane wrote:
>> chester c young <chestercyoung@yahoo.com> writes:
>>> SELECT field1 / 2 AS foo,
>>> field2 * 2 AS bar,
>>> foo + bar AS total
>>> WHERE foo < 12;

>> This is not an "extension", it is *directly* contrary to both the letter
>> and spirit of the SQL standard.

> "AS" works in Informix, and I believe, in DB2 as well.

I can't speak to Informix, but I will bet a good lunch that it does not
work like that in DB2.  DB2 is one of the more nearly
standard-conformant databases on the planet.  (Or possibly it's the
other way around ... there seem to be a lot of IBMers on the committee.)
        regards, tom lane


pgsql-sql by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Query Plan
Next
From: Nis Jørgensen
Date:
Subject: Re: Converting from MS Access field aliases