Note
This view is introduced since OceanBase Database V1.4.
Purpose
This view displays the mapping between character sets and collations.
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 mapping between character sets and collations 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