- Mailing list pgsql-general

From amk@gmx.at
Subject
Date
Msg-id 4001.1011020737@www57.gmx.net
Whole thread Raw
Responses Re:  (Michael Meskes <meskes@postgresql.org>)
List pgsql-general
Hello Postgres Gurus!

In the German language we have special characters like
Ä (Ä), Ö (Ö), Ü (Ü), ß (ß) and so on.

I have 5 entries in a table "entries" with one varchar column "name":

select name from entries;
Birnen
Äpfel
Öl
Essig
Salz

I like to sort these entries by name:

select name from entries order by name;
Birnen
Essig
Salz
Äpfel
Öl

But instead of using the standard alphabet
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Ä Ö Ü ß
for sorting the strings I would like to use the German alphabet
A Ä B C D E F G H I J K L M N O Ö P Q R S ß T U Ü V W X Y Z
to get the correct (sorted by German alphabet) result:

this would be my preferred result: ==>
select name from entries order by name;
Äpfel
Birnen
Essig
Öl
Salz

Can I do this with PostgreSQL?

Thanks,
Alex

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


pgsql-general by date:

Previous
From: pocm@rnl.ist.utl.pt (Paulo J. Matos)
Date:
Subject: User creation of DB
Next
From: computertechnology
Date:
Subject: Commercial: New Book!! PostgreSQL book is released into the market