Re: GROUP BY column alias?

Поиск
Список
Период
Сортировка
От Eric B. Ridge
Тема Re: GROUP BY column alias?
Дата
Msg-id 2D59EF5A-09C5-4ED3-B851-B1C9FCB50923@tcdi.com
обсуждение исходный текст
Ответ на Re: GROUP BY column alias?  (Scott Bailey <artacus@comcast.net>)
Ответы Re: GROUP BY column alias?  (Lew <noone@lwsc.ehost-services.com>)
Список pgsql-general
On Feb 18, 2010, at 5:52 PM, Scott Bailey wrote:

> SQL name resolution rules are that column names have higher precedence than aliases and variables. So it will always
bindto the column not the alias. 

That explains it.  Thanks.  Breaks the rule of least surprise, but it is SQL.

eric

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

Предыдущее
От: Scott Bailey
Дата:
Сообщение: Re: GROUP BY column alias?
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: pgpool error, pid not found!