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),...
|
Список | 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 по дате отправления: