简单查看表结构 DESC 表名; 查看创建表的SQL ddl语句 show create table 表名; 通过查询db表查询语句获取 select column_name, column_comment from information_schema.columns where table_schema =‘数据DB’ and table_name = ‘表名’ ;