Re: Sort order with spaces?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Sort order with spaces?
Дата
Msg-id 200309171144.02871.dev@archonet.com
обсуждение исходный текст
Ответ на Sort order with spaces?  (Kristian Jörg <krjg@devo.se>)
Ответы Re: Sort order with spaces?
Список pgsql-sql
On Wednesday 17 September 2003 10:47, Kristian Jörg wrote:
> Hello!
>
> I am having troubles with sort order in Postgres. It seems that space is
> not handled at all?
> For instance the following rows are sorted in MS SQL Server as:
>
> LUNDGREN
> M L R
> MACDOWELL
> MUSCLE
>
> But in Postgres I get this order:
>
> LUNDGREN
> MACDOWELL
> M L R
> MUSCLE

Sort order depends upon your locale settings (specifically LC_COLLATE), which
will have been set when you ran "initdb". Basically, sort orders for C ,
en_GB and fr will all be different. I'm guessing you expect "C" style
sorting.

Check the end of your postgresql.conf file to see what settings you currently
have.
See the manuals (Localization section) and list archives for plenty of
details.
--  Richard Huxton Archonet Ltd


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

Предыдущее
От: "Martin Kuria"
Дата:
Сообщение: Re: sub query
Следующее
От: Richard Huxton
Дата:
Сообщение: Trigger order problems