Re: Converting from MS Access field aliases

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: chester c young <chestercyoung(at)yahoo(dot)com>
Cc: Joel Richard <postgres(at)joelrichard(dot)com>, sql pgsql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Converting from MS Access field aliases
Date: 2007-07-12 17:23:00
Message-ID: 634.1184260980@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

chester c young <chestercyoung(at)yahoo(dot)com> writes:
>> SELECT field1 / 2 AS foo,
>> field2 * 2 AS bar,
>> foo + bar AS total
>> WHERE foo < 12;

> First, I think it would be great if this worked - like the alias to an
> update table added in 8.2 - saves a lot of typing and makes queries
> much more readable.

This is not an "extension", it is *directly* contrary to both the letter
and spirit of the SQL standard. I can hardly believe that M$ did that
... oh, actually, I can entirely believe it. The OP has a serious
problem of vendor lockin now, and that's exactly what M$ wants.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Joel Richard 2007-07-12 17:36:05 Re: Converting from MS Access field aliases
Previous Message chester c young 2007-07-12 16:36:50 Re: Converting from MS Access field aliases