1.查看建表语句
SHOW CREATE TABLE ***;
2.查看表结构信息
desc ***;
3.查看表分区信息
SELECT partition_name part, partition_expression expr, partition_description descr, table_rows FROM INFORMATION_SCHEMA.partitions WHERE TABLE_SCHEMA = schema() AND TABLE_NAME='***';
4.查看表索引
SHOW index FROM ***;
5.查看所有表状态
show table status;