mysql怎么查看表的comment
查看表的 comment
(推荐教程:mysql数据库学习教程)
SELECT table_name, table_comment FROM information_schema.tables WHERE table_schema = 'schema_name' AND table_name = 'table_name';
查看表中 columns 的 comment
SELECT column_name, column_comment FROM information_schema.columns WHERE table_schema = 'schema_name' AND table_name = 'table_name';
来源:PY学习网:原文地址:https://www.py.cn/article.html