Re: data order problem

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: data order problem
Дата
Msg-id web-1370650@davinci.ethosmedia.com
обсуждение исходный текст
Ответ на Re: data order problem  ("jack" <datactrl@tpg.com.au>)
Ответы MAX(column1),MAX(column2),...  (Bjarte Aagnes <bjartea@student.sv.uio.no>)
Список pgsql-sql
Jack,

> Suppose '_' stands for a space character. The one column table,xxx,
> contains
> following data.
> column name is suburb and is set as primary key.
> 
> 'THE_AAA'
> 'THE_BBB'
> 'THE_CDD'
> 'THECCC'
> 
> After I do
> "SELECT * FROM xxx ORDER BY suburb;"
> I've got this.
> 
> 'THE_AAA'
> 'THE_BBB'
> 'THECCC'
> 'THE_CDD'
> 
> But I expect it should be like ...
> 'THE_AAA'
> 'THE_BBB'
> 'THE_CDD'
> 'THECCC'
> 
> Because, according to ascii code, space character should be smaller
> than 'C'

It is.  I'm afraid that you compiled your database with some kind of
non-standard sort order, possibly due to the OS you are using.  I can't
help you with this; I'm just a SQL junkie.  Good luck!

-Josh


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

Предыдущее
От: Roberto Mello
Дата:
Сообщение: Re: Thank you ! Re: Is there any Faster workaround ??
Следующее
От: Edipo Elder Fernandes de Melo
Дата:
Сообщение: Large or Small tables?