mysql查询表的字段、字段类型、字段名称

select column_name 字段,column_type 字段类型,column_comment 字段名称 

from information_schema.columns orm

where table_name='表的名字' and table_schema='数据库名'

猜你喜欢

转载自blog.csdn.net/qq_50319351/article/details/129373443