使用Navicat工具
查询:
SELECT
TABLE_SCHEMA AS '数据库',
TABLE_NAME AS '表名',
COLUMN_NAME AS '字段名',
COLUMN_TYPE AS '字段类型',
COLUMN_COMMENT AS '字段说明'
FROM
information_schema.COLUMNS
WHERE
TABLE_SCHEMA = '您的数据库名';
执行以上sql 然后点击导出,选择想要导出的类型 就可以
使用Navicat工具
查询:
SELECT
TABLE_SCHEMA AS '数据库',
TABLE_NAME AS '表名',
COLUMN_NAME AS '字段名',
COLUMN_TYPE AS '字段类型',
COLUMN_COMMENT AS '字段说明'
FROM
information_schema.COLUMNS
WHERE
TABLE_SCHEMA = '您的数据库名';
执行以上sql 然后点击导出,选择想要导出的类型 就可以