Navicat导出表结构(表设计)为Excel格式


SELECT
COLUMN_NAME 字段名称,
COLUMN_TYPE 数据类型,
IF(IS_NULLABLE='NO','是','否') AS '必填',
COLUMN_COMMENT 注释
FROM
INFORMATION_SCHEMA.COLUMNS
where
table_schema ='数据库名'
AND
table_name = '表名'

https://www.cnblogs.com/xianxiaobo/p/10254737.html