| От | Tomasz Myrta |
|---|---|
| Тема | Re: Order by with spaces and other characters |
| Дата | |
| Msg-id | gdur2m$21u7$1@news.hub.org обсуждение исходный текст |
| Ответ на | Order by with spaces and other characters ("mike stanton" <mstanton@acsa.cl>) |
| Список | pgsql-general |
mike stanton napisal 24.10.2008 21:03: > Hello everyone. > We have a simple problem...that we have keys that include blanks and > various other commonly used characters like ",", ";" and "-". For some > reason, the select we have, nothing complicated, ignores these "special" > characters and happily sorts by the A-z range. How do we sort by the, > say ascii 32-125 range? > This must be a known issue; perhaps we need to configure a parameter. Sorting behavior depends on database locale. You can override it and make Postgres sort output data binary with "ORDER BY xxx USING ~<~" It's default when database is initialized with "C" locale. -- Regards, Tomasz Myrta
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера