mysql常用命令

 1.查看数据库支持的所有字符集 
        show character set;或show char set;  

  2.查看当前状态 里面包括当然的字符集设置 
        status或者\s 

  3.查看系统字符集设置,包括所有的字符集设置 
        show variables like 'char%'; 

  4.查看数据表中字符集设置 
        show full columns from tablename; 或者 show create table tablename\G; 

  5.查看数据库编码 
        show create database dnname;  

编程技巧