MariaDB社区

标题: 如何查看MySQL数据库字符集和Collation信息 [打印本页]

作者: admin    时间: 2007-4-13 00:01
标题: 如何查看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
补充。。。。
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





欢迎光临 MariaDB社区 (http://123.56.88.72/) Powered by Discuz! X3.2