使用navicat导出数据字典 - mysql

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36663951/article/details/81207623

利用mysql的information_schema中的COLUMNS表
和navicat中的导出功能实现快速导出数据字典:

1.查询出字段:
select
TABLE_NAME 表名,
COLUMN_NAME 字段名,
COLUMN_TYPE 数据类型,
COLUMN_COMMENT 字段描述,
COLUMN_DEFAULT 默认值,
COLUMN_KEY 索引
from information_schema.columns
where TABLE_SCHEMA='calf';

2.导出excel:

猜你喜欢

转载自blog.csdn.net/qq_36663951/article/details/81207623
今日推荐