In Doris, the SHOW COLLATION command is used to display the character set collations available in the database. A collation is a set of rules that determine how data is sorted and compared. These rules affect the storage and retrieval of character data. Doris currently mainly supports the proofreading method utf8_general_ci.
The SHOW COLLATION command returns the following fields:
mysql> show collation; +-----------------+---------+------+---------+----------+---------+ | Collation | Charset | Id | Default | Compiled | Sortlen | +-----------------+---------+------+---------+----------+---------+ | utf8mb4_0900_bin | utf8mb4 | 33 | Yes | Yes | 1 | +-----------------+---------+------+---------+----------+---------+
SHOW, COLLATION
Use the SHOW COLLATION command to give you an idea of the collations available in the database and their properties. This information can help ensure that your character data is sorted and compared as expected. If you have problems comparing or sorting characters, it can be helpful to check your collation settings to make sure they are what you expect.