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

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

 

posted @ 2021-08-29 15:04  CodeYaSuo  阅读(148)  评论(0编辑  收藏  举报