COLLATION_CHARACTER_SET_APPLICABILITY

COLLATION_CHARACTER_SET_APPLICABILITY 表示了每个排序规则适用的字符集。

  1. USE INFORMATION_SCHEMA;
  2. SELECT * FROM COLLATION_CHARACTER_SET_APPLICABILITY;

结果如下:

  1. +----------------+--------------------+
  2. | collation_name | character_set_name |
  3. +----------------+--------------------+
  4. | utf8_bin | utf8 |
  5. +----------------+--------------------+

结果中的列:

  • collation_name:排序规则名称。
  • character_set_name:与排序规则关联的字符集名称。