SELECT
COLUMN_NAME as 字段名称,
COLUMN_TYPE as 数据类型,
if(COLUMN_KEY='PRI','Y','N') as 主键,
COLUMN_COMMENT as 备注
FROM
INFORMATION_SCHEMA. COLUMNS
WHERE
table_schema = '数据库名称'
AND
table_name = '数据表名称'
快速的将数据库表的注释内容字段导出
最新推荐文章于 2021-04-07 00:30:55 发布