Re: [HACKERS] Re: [SQL] DISTINCT ON: speak now or forever hold your peace
В списке pgsql-sql по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] Re: [SQL] DISTINCT ON: speak now or forever hold your peace |
| Дата | |
| Msg-id | 19434.948927908@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [HACKERS] Re: [SQL] DISTINCT ON: speak now or forever hold your peace (Chris Bitmead <chris@bitmead.com>) |
| Ответы |
Re: [HACKERS] Re: [SQL] DISTINCT ON: speak now or forever hold your
peace
|
| Список | pgsql-sql |
Chris Bitmead <chris@bitmead.com> writes:
> As long as we're fixing the syntax, I'm wondering if it wouldn't be more
> logical to have DISTINCT ON somewhere later in the syntax.
Well, SELECT DISTINCT is that way because SQL92 says so. Putting the
DISTINCT ON variant somewhere else might be logically purer, but I think
it'd be confusing.
Also, isn't the reason we have DISTINCT ON at all that it's there to
be compatible with MySQL or someone? I figured adding parens would be
about the least-surprising variant syntax for a person used to those
other products.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера