Re: ORDER BY Problem...
Reinoud van Leeuwen <reinoud@xs4all.nl>
From: "Reinoud van Leeuwen" <reinoud@xs4all.nl>
To: <S.Olloz@soid.ch>
Cc: <pgsql-hackers@postgresql.org>
Date: 2001-06-06T12:29:25Z
Lists: 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 ------ ABCD AD Abc (3 rows) # select * from test order by upper(col1); col1 ------ Abc ABCD AD (3 rows)