admin 发表于 2007-4-13 00:01:41

如何查看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%';

boxman 发表于 2007-11-28 17:09:39

补充。。。。
select * from information_schema.character_sets;
select * from information_schema.collations;
select * from information_schema.collation_character_set_applicability;

kider 发表于 2007-11-28 17:40:04

:victory:
页: [1]
查看完整版本: 如何查看MySQL数据库字符集和Collation信息