Re: ORDER BY DESC and NULLS LAST by default

Поиск
Список
Период
Сортировка
От Holger Jakobs
Тема Re: ORDER BY DESC and NULLS LAST by default
Дата
Msg-id C4B5BA76-C20C-4E85-AAD7-0FB1F472654B@jakobs.com
обсуждение исходный текст
Ответ на ORDER BY DESC and NULLS LAST by default  (Loles <lolesft@gmail.com>)
Ответы Re: ORDER BY DESC and NULLS LAST by default  (Loles <lolesft@gmail.com>)
Список pgsql-admin
Actually, the behaviour isn't NULLS LAST, but NULLS GREATEST.

There is no setting for choosing NULLS SMALLEST.

If you choose NULLS LAST, they always appear at the end, regardless of ASC or DESC. NULLS FIRST does the opposite.

Regards,

Holger


Am 27. Oktober 2023 16:16:09 MESZ schrieb Loles <lolesft@gmail.com>:
Hi!

Can the server be configured so that the default ORDER BY option is DESC instead of ASC?

And to make it NULLS LAST instead of NULLS FIRST?

Happy weekend and Thank you very much!

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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: Progress of ALTER TABLE on inheritance-partitioned table?
Следующее
От: Loles
Дата:
Сообщение: Re: ORDER BY DESC and NULLS LAST by default