select COLUMN_NAME,COLUMN_COMMENT,COLUMN_TYPE
from
INFORMATION_SCHEMA.Columns
where
table_name = '表名'and table_schema='数据库';
SELECT
*
FROM
information_schema.TABLES
WHERE
table_schema = '数据库名';
Mysql查询数据库的表,字段注释及类型
最新推荐文章于 2023-04-23 16:12:47 发布