| title | SHOW CHARACTER SET | TiDB SQL Statement Reference | |
|---|---|---|
| summary | An overview of the usage of SHOW CHARACTER SET for the TiDB database. | |
| category | reference | |
| aliases |
|
This statement provides a static list of available character sets in TiDB. The output does not reflect any attributes of the current connection or user.
ShowStmt:
ShowTargetFilterable:
CharsetKw:
mysql> SHOW CHARACTER SET;
+---------+---------------+-------------------+--------+
| Charset | Description | Default collation | Maxlen |
+---------+---------------+-------------------+--------+
| utf8 | UTF-8 Unicode | utf8_bin | 3 |
| utf8mb4 | UTF-8 Unicode | utf8mb4_bin | 4 |
| ascii | US ASCII | ascii_bin | 1 |
| latin1 | Latin1 | latin1_bin | 1 |
| binary | binary | binary | 1 |
+---------+---------------+-------------------+--------+
5 rows in set (0.00 sec)This statement is understood to be fully compatible with MySQL. Any compatibility differences should be reported via an issue on GitHub.


