1.首先将我们所需要的表结构输出出来
select column_name as '字段名',
column_comment as '描述',
column_type as '数据类型',
column_key as 'KEY',
is_nullable as 'NULL',
column_default as '默认'
from information_schema.columns where table_schema='数据库名' and table_name='表名';
2.得到结果后,点击导出结果(这里用到的是navicat premium版)
打开excel后,对样式,格式等进行修改
鼠标左键选中有数据的任意位置 然后ctrl+a 全选我们选中的区域然后设置表格样式