Skip to main content

SHOW CHARSET

Descriptionโ€‹

The "SHOW CHARSET" command is used to display the character sets available in the current database management system and some properties associated with each character set.

These properties may include the name of the character set, default collation, maximum byte length, etc. A list of character sets supported on the system and their details can be viewed by running the "SHOW CHARSET" command.

Syntaxโ€‹

SHOW CHARSET

Return Valueโ€‹

column namedescription
CharsetCharacter Set
DescriptionDescription
Default CollationDefault collation name
MaxlenMaximum byte length

Examplesโ€‹

SHOW CHARSET;
+---------+---------------+-------------------+--------+
| Charset | Description | Default collation | Maxlen |
+---------+---------------+-------------------+--------+
| utf8mb4 | UTF-8 Unicode | utf8mb4_0900_bin | 4 |
+---------+---------------+-------------------+--------+

Enter to send ยท Shift+Enter for a new line