information_schema.COLLATION_CHARACTER_SET_APPLICABILITY

2026-03-06 07:02:41  Updated

Note

This view is available starting with V1.4.

Purpose

This view records the correspondence between a character and a collation.

Columns

Column Type Nullable Description
COLLATION_NAME varchar(128) NO The name of the collation.
CHARACTER_SET_NAME varchar(128) NO The name of the character set.

Sample query

Query the correspondence between a character and a collation in the database and display the first 10 records.

obclient [infotest]> SELECT * FROM information_schema.COLLATION_CHARACTER_SET_APPLICABILITY LIMIT 10;

The query result is as follows:

+--------------------+--------------------+
| COLLATION_NAME     | CHARACTER_SET_NAME |
+--------------------+--------------------+
| utf8mb4_general_ci | utf8mb4            |
| utf8mb4_bin        | utf8mb4            |
| binary             | binary             |
| gbk_chinese_ci     | gbk                |
| gbk_bin            | gbk                |
| utf16_general_ci   | utf16              |
| utf16_bin          | utf16              |
| gb18030_chinese_ci | gb18030            |
| gb18030_bin        | gb18030            |
| latin1_swedish_ci  | latin1             |
+--------------------+--------------------+
10 rows in set

Contact Us