By default, the SHOW CHARACTER SET
statement displays all available character sets. It takes an
optional LIKE or
WHERE clause that indicates which character set
names to match. The following example shows some of the Unicode
character sets (those based on Unicode Transformation Format):
A given character set always has at least one collation, and most
character sets have several. To list the display collations for a
character set, use the INFORMATION_SCHEMACOLLATIONS table or the
SHOW COLLATION statement.
By default, the SHOW COLLATION
statement displays all available collations. It takes an optional
LIKE or WHERE
clause that indicates which collation names to display. For
example, to see the collations for the default character set,
utf8mb4, use this statement:
Two different character sets cannot have the same collation.
Each character set has a default
collation. For example, the default collations for
utf8mb4 and latin1 are
utf8mb4_0900_ai_ci and
latin1_swedish_ci, respectively. The
INFORMATION_SCHEMACHARACTER_SETS table and the
SHOW CHARACTER SET statement
indicate the default collation for each character set. The
INFORMATION_SCHEMACOLLATIONS table and the
SHOW COLLATION statement have a
column that indicates for each collation whether it is the
default for its character set (Yes if so,
empty if not).
Collation names start with the name of the character set with
which they are associated, generally followed by one or more
suffixes indicating other collation characteristics. For
additional information about naming conventions, see
Section 10.3.1, “Collation Naming Conventions”.
When a character set has multiple collations, it might not be
clear which collation is most suitable for a given application. To
avoid choosing an inappropriate collation, perform some
comparisons with representative data values to make sure that a
given collation sorts values the way you expect.
Site language settings
If you prefer to continue on the site in English, click on "Cancel". If you cancel, this message will no longer appear during the session.
U bevindt zich op de Engels versie van de site, maar uw systeem geeft aan dat u liever de Nederlandse taal gebruikt. De hele site is nog niet vertaald, maar de menu's en knoppen op de interface zijn grotendeels vertaald.
Sie befinden sich in der Englisch Version der Website, Ihr System gibt jedoch an, dass Sie die deutsche Sprache bevorzugen. Die gesamte Site ist noch nicht übersetzt, aber die Menüs und Schaltflächen auf der Benutzeroberfläche sind weitgehend übersetzt.
Document created the 26/06/2006, last modified the 26/10/2018 Source of the printed document:https://www.gaudry.be/en/mysql-rf-charset-mysql.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page. The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.