如何查看MySQL数据库字符集和Collation信息
MySQL服务器能够支持多种字符集。1、使用SHOW CHARACTER SET语句列出数据库中可用的字符集:
例:mysql> SHOW CHARACTER SET;
2、要想列出一个字符集的校对(Collation)规则,使用SHOW COLLATION语句。
例如,要想查看latin1(“西欧ISO-8859-1”)字符集的 校对规则,使用下面的语句查找那些名字以latin1开头的 校对规则:
mysql> SHOW COLLATION LIKE 'latin1%'; 补充。。。。
select * from information_schema.character_sets;
select * from information_schema.collations;
select * from information_schema.collation_character_set_applicability; :victory:
页:
[1]