mysql查询表中所有字段的名字

 

 

select COLUMN_NAME,column_comment from INFORMATION_SCHEMA.Columns where table_name='表名' and table_schema='数据库名'

 

posted @ 2021-05-13 15:53  2538  阅读(226)  评论(0编辑  收藏  举报