-- 查看表的 comment
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';
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐