Re: SQL syntax (column alias) - Mailing list pgsql-hackers

From Joe Conway
Subject Re: SQL syntax (column alias)
Date
Msg-id 3DCE8B8D.4080509@joeconway.com
Whole thread Raw
In response to PostgreSQL JDBC and sub-select  (snpe <snpe@snpe.co.yu>)
Responses Re: SQL syntax (column alias)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
snpe wrote:
> work, but I think that AS in 'as cluse' is optional
> 
> Please comment.

See:  http://developer.postgresql.org/docs/postgres/sql-select.html


Near the bottom:

" SQL92

SELECT Clause

In the SQL92 standard, the optional keyword AS is just noise and can be 
omitted without affecting the meaning. The PostgreSQL parser requires this 
keyword when renaming output columns because the type extensibility features 
lead to parsing ambiguities in this context. AS is optional in FROM items, 
however."

Joe



pgsql-hackers by date:

Previous
From: Rod Taylor
Date:
Subject: Re: SQL syntax (column alias)
Next
From: Tom Lane
Date:
Subject: Re: SQL syntax (column alias)