1 查看建表语句 show create table tbname 2 查看索引 mysql> show index from tblname; mysql> show keys from tblname;