说明:<> 为必须指定该对象
[ ] 为可选项
{ }为必选项
查看mysql数据库默认编码
show variables like '%char%';
查看当前数据库编码
show create database <数据库名>;
查看当前数据库下数据表的编码
show create table <表名>;
查看指定数据表的编码
show create table <数据库名.表名>;
查看已建数据库
show databases <数据库名>;
查看当前数据库中的所有表
show tables;
查看指定数据库下的所有表
show tables in <数据库名>;
查看表的结构
show columns from <表名>;
查看表中的所有记录
select * from <表名>;