| От | Tomasz Myrta |
|---|---|
| Тема | Re: Sorting by NULL values |
| Дата | |
| Msg-id | 3E65061B.9020907@klaster.net обсуждение исходный текст |
| Ответ на | Sorting by NULL values (Ian Burrell <ib@onsitetech.com>) |
| Список | pgsql-sql |
Ian Burrell wrote: > I am doing a query where I need to sort by a column that may be NULL > because it is coming from an OUTER JOIN. I noticed a difference between > PostgreSQL and other databases about where NULLs show up. It seems that > with Postgres, NULLs are sorted after other values. Other databases > sort them before. > > Is there any standard on how sorting NULLs work? Is there a way to > change Postgres's behavior? Is there a way to replace the NULLs with > empty strings? order by field is null asc/desc, field asc/desc Regards, Tomasz Myrta
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера