Re: How to order varchar data by word

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to order varchar data by word
Дата
Msg-id 8017.1255973569@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to order varchar data by word  ("Oliveiros C," <oliveiros.cristina@marktest.pt>)
Список pgsql-sql
"Oliveiros C," <oliveiros.cristina@marktest.pt> writes:
> If any one can explain me exactly how the order by clause works on varchars, 
> I 'd really appreciate it.

It sorts according to the sort order imposed by your locale setting
(see LC_COLLATE in particular).

A lot of locales have weird and wonderful rules that embody somebody's
notion of "dictionary order".  If you don't like it, try switching to
C locale.  Or you could learn enough about locale definitions to create
your own.
        regards, tom lane


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

Предыдущее
От: "Oliveiros C,"
Дата:
Сообщение: Re: How to order varchar data by word
Следующее
От: Gary Chambers
Дата:
Сообщение: Re: Efficiency in Multiple Queries of Same Table in a PL/PgSQL Function