首页 > IT职业 > IT职场 > 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';
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3050/viewspace-2832599/ ,如需转载,请注明出处,否则将追究法律责任。