MYSQL中SQL语句查询表字段名、注释、字段类型

时间:2020-12-20 13:52:45
select column_name,column_comment,data_type from information_schema.columns where table_name='你的表名'


PLUS:

查询dababase下所有表名及表注释

SELECT TABLE_NAME,TABLE_COMMENT FROM information_schema.TABLES WHERE table_schema='database名';