查询一个表的所有字段

select COLUMN_NAME from information_schema.COLUMNS where table_name = '要查询表的名字'; 

原文地址:https://www.cnblogs.com/sunxun001/p/10996254.html