SHOW CHARACTER SET
ShowCharsetStmt:
CharsetKw:
| Charset | Description | Default collation | Maxlen |
+---------+---------------+-------------------+--------+
| utf8mb4 | UTF-8 Unicode | utf8mb4_bin | 4 |
| latin1 | Latin1 | latin1_bin | 1 |
+---------+---------------+-------------------+--------+
5 rows in set (0.00 sec)
SHOW CHARACTER SET
语句功能与 MySQL 完全兼容。注意,TiDB 中字符集的默认排序规则与 MySQL 有所不同,具体可以参考。如发现任何兼容性差异,请在 GitHub 上提交 issue。