Question on the right way to think about order by

Поиск
Список
Период
Сортировка
От Paula Kirsch
Тема Question on the right way to think about order by
Дата
Msg-id CAHaXFP+cZ61H6UWV4iNsoRkHp=hNaydbeVSKD8iryimfbMYG3Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: Question on the right way to think about order by
Список pgsql-general
When I think about using order by in a select statement, e.g.

select id, name, price from stuff order by name;

I think of order by as an operator sorting data returned by the select statement.

When I think about order by in an aggregate statement, e.g.

select string_agg(product, ' | ' order by product) from products;

is it correct to think of order by as a parameter passed to string_agg?

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