[opengeodb] Sortierung von
Thomas Mack
mack at ifis.cs.tu-bs.de
Fre Jun 24 12:28:18 CEST 2005
Am Freitag, 24. Juni 2005 12:09 schrieb nicogrubert at arcor.de:
> > Wenn ich mich recht erinnere, kann oder (muß?) man in den neueren
> > MySQL Versionen alle möglichen Dinge in Bezug auf die
> > Internationalisierung einzeln einstellen. Suche mal in der Doku nach
> > Encoding oder Sortierung.
>
> hatte gestern die mysql 4 Doku durchgeschaut und leider nichts
> gefunden. Mir ist nicht ganz klar, ob ich da direkt was in der SQL
> query angeben muss, oder die einzelne Spalte in der Tabelle, nach der
> ich sortieren will, irgendwie umwandeln muss für die Sortierung nach
> deutschen Regeln.
>
Aus der Doku auf mysql.org:
(Kapitel 5.9.1)
...
As of MySQL 4.1.1, you can also change the character set collation with
the --default-collation option when you start the server. The collation
must be a legal collation for the default character set. (Use the SHOW
COLLATION statement to determine which collations are available for each
character set.) See Section 2.8.2, Typical configure Options.
If you change the character set when running MySQL, that may also
change the sort order. Consequently, you must run myisamchk -r -q
--set-character-set=charset on all tables, or your indexes may not be
ordered correctly.
When a client connects to a MySQL server, the server indicates to the
client what the server's default character set is. The client switches
to use this character set for this connection.
Vielleicht hilft es ja...
Thomas