Re: Converting from MS Access field aliases

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Converting from MS Access field aliases
Дата
Msg-id 878x9l705l.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Converting from MS Access field aliases  (Adam Tauno Williams <adamtaunowilliams@gmail.com>)
Список pgsql-sql
"Adam Tauno Williams" <adamtaunowilliams@gmail.com> writes:

> "AS" works in Informix, and I believe, in DB2 as well.  So it is at
> least pretty common;  I'm not saying it is correct.  Since Informix
> predates M$-SQL they at least didn't invent it.

AS works in Postgres too. But the defined aliases are only in the resulting
output columns, not in scope for the where clause. In fact the expressions
used aren't even evaluated for rows which don't match the where clause which
is pretty important if those expressions are subqueries or volatile functions.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Radhika Sambamurti"
Дата:
Сообщение: Query Plan
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: Query Plan