Re: ORDER BY Problem...

Поиск
Список
Период
Сортировка
От Reinoud van Leeuwen
Тема Re: ORDER BY Problem...
Дата
Msg-id 1194.194.109.0.126.991830565.squirrel@webmail2.xs4all.nl
обсуждение исходный текст
Ответ на ORDER BY Problem...  (Severin Olloz <S.Olloz@soid.ch>)
Список pgsql-hackers
> Hello...
> 
> Why does Postgresql order the uppercase letters first?
> 
> I have e.g. a table with one row an in this row there are follow
> values:
> 
> row1
> ----
> ADC
> aa
> ABC
> 
> With this select-syntax 
> 
> select * from table order by row1
> 
> I become this output
> 
> ABC
> ADC
> aa
> 
> but I want this ouptut:
> 
> aa
> ABC
> ADC
> 
> What do I wrong?

This will not solve your problem, but a way around this is to sort on upper
(row1):

# select * from test order by col1;col1
------ABCDADAbc
(3 rows)

# select * from test order by upper(col1);col1
------AbcABCDAD
(3 rows)




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

Предыдущее
От: Severin Olloz
Дата:
Сообщение: ORDER BY Problem...
Следующее
От: "Reinoud van Leeuwen"
Дата:
Сообщение: Re: capturing stored procedure return values from php??please help .