文章目录
一、Mysql
# 查看表中字段的注释
SELECT column_name, column_comment FROM information_schema.`COLUMNS`
WHERE TABLE_NAME="表名" AND TABLE_SCHEMA="库名";
# 查看数据库中的表名和注释
SELECT table_name, table_comment FROM information_schema.`TABLES`
WHERE TABLE_SCHEMA="库名";
2023-10-27 21:20:46