#查询SQL
select
names.TABLE_NAME as 表英名,
names.TABLE_COMMENT as 表中文,
column_name as 字段名称,
column_type as 数据类型,
column_comment as 字段备注
FROM
information_schema.COLUMNS as columns
left join (select TABLE_NAME,table_comment from information_schema.TABLES) as names on columns.table_name = names.TABLE_NAME
WHERE columns.table_schema = 'xxx' #要查询的数据库名称
and columns.TABLE_NAME = 'xxx' #要查询的表名
group by columns.COLUMN_NAME,columns.TABLE_NAME order by columns.TABLE_NAME;
我这里使用的datagrip工具,在查询出的数据右上角有个导出数据,可选择导除的格式