Re: Why can't I .........

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Josh Berkus" <josh(at)agliodbs(dot)com>
Cc: mbenzid(at)yahoo(dot)de (Mounir Benzid), pgsql-sql(at)postgresql(dot)org
Subject: Re: Why can't I .........
Date: 2001-08-07 18:29:56
Message-ID: 8886.997208996@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Josh Berkus" <josh(at)agliodbs(dot)com> writes:
>> -- use labels to name columns in this way
>>
>> ... select col1 userid, col2 name from ... (instead of using AS)

> Because AS is the ANSI SQL 92 standard. And we like standards.

Actually, SQL92 says that AS is optional. However, Postgres contains a
lot of extensions to SQL92, and some of them produce parse ambiguities
if AS is optional. So we require it. This isn't going to change, as
it would require ripping out a lot of useful stuff.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2001-08-07 18:33:48 Name Alike Challenge
Previous Message Raymond Chui 2001-08-07 18:17:50 The numbers are not match in 7.1.2