Re: string_agg delimiter having no effect with order by

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: string_agg delimiter having no effect with order by
Дата
Msg-id AANLkTik7Nc=ei-LvA2MXeYUXSduGskOmGqCPfO99MDwK@mail.gmail.com
обсуждение исходный текст
Ответ на Re: string_agg delimiter having no effect with order by  (Greg Stark <gsstark@mit.edu>)
Ответы Re: string_agg delimiter having no effect with order by  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On 5 August 2010 10:29, Greg Stark <gsstark@mit.edu> wrote:
> On Thu, Aug 5, 2010 at 5:18 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
>> The same problem can be with custom aggregates :( so this syntax isn't
>> too robust. We can support Oracle's syntax in future releases, where
>> syntax divide aggregate call and ORDER BY clause.
>>
>
> What syntax is that?
>
> --
> greg
>

An example I've found is:

SELECT deptno, LISTAGG(ename, ',') WITHIN GROUP (ORDER BY ename) AS employees
FROM   emp
GROUP BY deptno;

--
Thom Brown
Registered Linux user: #516935

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: string_agg delimiter having no effect with order by
Следующее
От: seol-dongin@hti.hitachi-hitec.com
Дата:
Сообщение: My computer shut down automatically