SELECT column_name FROM information_schema.columns

WHERE table_schema='数据库名称' AND table_name='表名称';

举例:

查询MySQL某个数据库某个表的字段名称 

相关文章: