pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: adamtaunowilliams@gmail.com
Cc: sql pgsql <pgsql-sql@postgresql.org>
Subject: Re: Converting from MS Access field aliases
Date: Thu, 12 Jul 2007 18:48:31 -0400
Message-ID: <13141.1184280511@sss.pgh.pa.us> (raw)
In-Reply-To: <1184272450.4427.35.camel@aleph.whitemice.org>
References: <746273.93291.qm@web54305.mail.re2.yahoo.com>
	<634.1184260980@sss.pgh.pa.us>
	<1184272450.4427.35.camel@aleph.whitemice.org>

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



view thread (13+ messages)  latest in thread

Message-ID: <13141.1184280511@sss.pgh.pa.us>
Permalink:  ../13141.1184280511@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13141.1184280511@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, adamtaunowilliams@gmail.com
  Subject: Re: Converting from MS Access field aliases
  In-Reply-To: <13141.1184280511@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox