Re: SQL syntax (column alias)

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: SQL syntax (column alias)
Дата
Msg-id 3DCE8B8D.4080509@joeconway.com
обсуждение исходный текст
Ответ на PostgreSQL JDBC and sub-select  (snpe <snpe@snpe.co.yu>)
Ответы Re: SQL syntax (column alias)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: SQL syntax (column alias)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SQL syntax (column alias)