获取mysql的表注释和字段注释

来源:互联网 发布:linux cat怎么退出 编辑:程序博客网 时间:2024/05/20 10:22

表注释在 information_schema 库的 TABLES 表中TABLE_COMMENT 字段里

或者使用:show table status

最后一列:Comment 就是表注释

 

 

 

 

 

获取一个表里面的字段注释的sql:

show full fields from table

 

最后一列:Comment 就是字段注释

原创粉丝点击