Re: SELECT DISTINCT ON bug?

Поиск
Список
Период
Сортировка
От Jean-Christian Imbeault
Тема Re: SELECT DISTINCT ON bug?
Дата
Msg-id 3ECB440E.10602@mega-bucks.co.jp
обсуждение исходный текст
Ответ на Re: SELECT DISTINCT ON bug?  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Ответы Re: SELECT DISTINCT ON bug?
Список pgsql-general
Nigel J. Andrews wrote:
>>
>>I gather that to mean SELECT DISTINCT ON (*) , ...
>>
>>Is the syntax give by "\h select" wrong or am I misinterpreting it?
>
>
> That's a misinterpretation I'm afraid. There is no comma shown before the *
> that is not part of the expression for the DISTINCT ON.

You mean "after the *" right? ;)

After looking at it again I see how I misunderstood the syntax. But I do
find it intuitive to say:

SELECT DISTINCT ON(c1) c2,c3 FROM ...

But I can live with it considering DISTINCT ON is non-standard SQL :)

--

Jean-Christian Imbeault


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

Предыдущее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: SELECT DISTINCT ON bug?
Следующее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: SELECT DISTINCT ON bug?