Information Schema CHARACTER_SETS Table
The Information Schema CHARACTER_SETS table contains a list of supported character sets, their default collations, and maximum lengths.
Column
Description
SHOW CHARACTER SET WHERE Maxlen LIKE '2';SELECT * FROM information_schema.CHARACTER_SETS
WHERE MAXLEN LIKE '2';Example
SELECT CHARACTER_SET_NAME FROM information_schema.CHARACTER_SETS
WHERE DEFAULT_COLLATE_NAME LIKE '%chinese%';
+--------------------+
| CHARACTER_SET_NAME |
+--------------------+
| big5 |
| gb2312 |
| gbk |
+--------------------+Last updated
Was this helpful?

