Re: BUG Report - Select distinct on

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG Report - Select distinct on
Дата
Msg-id 26453.959896261@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG Report - Select distinct on  (Dirk Elmendorf <delmendo@rackspace.com>)
Список pgsql-bugs
Dirk Elmendorf <delmendo@rackspace.com> writes:
> select distinct on label label from test;

> ERROR:parser: parse error at or near "label";

The syntax is different in 7.0.  Try

select distinct on (label) label from test;

Sorry about the loss of backwards compatibility, but this lets you
select distinct on expressions and even multiple expressions, which
wasn't possible with the old column-name-only syntax...

            regards, tom lane

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

Предыдущее
От: Dirk Elmendorf
Дата:
Сообщение: BUG Report - Select distinct on
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: INET operators and NOT