Re: order by

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: order by
Дата
Msg-id c73b4066b970347839301d842fdf4f646cd1f0ae.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: order by  (Luca Ferrari <fluca1978@gmail.com>)
Список pgsql-general
On Thu, 2021-06-10 at 10:39 +0200, Luca Ferrari wrote:
> I also realized that this "table to tuples" expansion works for GROUP BY too.
> However, I'm not able to find this documented in GROUP BY, WHERE,
> ORDER BY clauses sections into select documentation
> <fgrouphttps://www.postgresql.org/docs/12/sql-select.html>;. Could be
> my fault, of course.

I don't think it is really documented outside the source, but it is
called a "whole-row reference" and behaves in SQL like composite
data type that belongs to the table.

So ordering is lexicographical, equality is equality of all members,
and don't ask me about IS NULL and IS NOT NULL, else I point you to
https://www.postgresql.org/message-id/flat/48BDABE9-88AB-46E9-BABE-F70DDBFB98BD%40kineticode.com

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: order by
Следующее
От: Han Wang
Дата:
Сообщение: Questions about support function and abbreviate.