Re: ORDER BY DESC and NULLS LAST by default
От | Arjan Saly Consultancy (EU) |
---|---|
Тема | Re: ORDER BY DESC and NULLS LAST by default |
Дата | |
Msg-id | 31B4CC5A-ADE1-42C9-8A89-8B1EC78D8571@arjansaly.eu обсуждение исходный текст |
Ответ на | Re: ORDER BY DESC and NULLS LAST by default (M Sarwar <sarwarmd02@outlook.com>) |
Список | pgsql-admin |
You should be able to use the ORDER BY <sort_espression> ASC NULLS LAST clause, see this page in the manuals: https://www.postgresql.org/docs/current/queries-order.html
See https://www.postgresql.org/docs/current/locale.html#LOCALE-BEHAVIOR for more information on localisation and collation in PostgreSQL.

Hope this helps!
Kind Regards,
Arjan Saly
Database & Business Intelligence Specialist
Arjan Saly Consultancy
e: consultancy@arjansaly.eu
l: https://nl.linkedin.com/in/arjansaly
w: https://www.arjansaly.eu/consultancy
Arjan Saly
Database & Business Intelligence Specialist
Arjan Saly Consultancy
e: consultancy@arjansaly.eu
l: https://nl.linkedin.com/in/arjansaly
w: https://www.arjansaly.eu/consultancy

Op 27 okt 2023, om 16:17 heeft M Sarwar <sarwarmd02@outlook.com> het volgende geschreven:I do not think that this is available in any of the databases.SarwarFrom: Loles <lolesft@gmail.com>
Sent: Friday, October 27, 2023 10:16 AM
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: ORDER BY DESC and NULLS LAST by defaultHi!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 по дате отправления: