The COLLATIONS table provides information about collations for each character set.
The COLLATIONS table has these columns:
-
COLLATION_NAMEThe collation name.
-
CHARACTER_SET_NAMEThe name of the character set with which the collation is associated.
-
IDThe collation ID.
-
IS_DEFAULTWhether the collation is the default for its character set.
-
IS_COMPILEDWhether the character set is compiled into the server.
-
SORTLENThis is related to the amount of memory required to sort strings expressed in the character set.
-
PAD_ATTRIBUTEThe collation pad attribute, either
NO PADorPAD SPACE. This attribute affects whether trailing spaces are significant in string comparisons; see Trailing Space Handling in Comparisons.
Notes
Collation information is also available from the SHOW COLLATION statement. See Section 15.7.7.5, “SHOW COLLATION Statement”. The following statements are equivalent:
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATIONS
[WHERE COLLATION_NAME LIKE 'wild']
SHOW COLLATION
[LIKE 'wild']