Mysql查询表注释和字段注释信息

 

 

MySQL查询表注释和字段注释信息

-- 查询表注释
select table_schema, table_name, table_comment from information_schema.tables where table_schema = 'xxx' and table_name = 'xxx';


-- 查询表字段注释
select table_schema, table_name, column_name, column_comment from information_schema.columns where table_schema = 'xxx' and table_name = 'xxx';

 

记录备查

posted @ 2020-08-14 10:31  宝山方圆  阅读(2883)  评论(0编辑  收藏  举报