问题:如何查询mysql数据表的注释?
方法:
SELECT COLUMN_NAME, column_comment FROM INFORMATION_SCHEMA.Columns WHERE
table_name='users' AND table_schema='dongman';
拓展:
/* 查询数据库 ‘dongman’ 所有表注释 */
SELECT TABLE_NAME,TABLE_COMMENT FROM information_schema.TABLES WHERE table_schema='dongman';
参考:
https://www.cnblogs.com/007sx/p/7093429.html