1、查询所有表字段名
select COLUMN_NAME from information_schema.COLUMNS;
2、查询所有表名和字段名
select * from information_schema.COLUMNS;
字段:TABLE_NAME(表)
字段:COLUMN_NAME(字段)
3、查询单表字段
select COLUMN_NAME from information_schema.COLUMNS where TABLE_NAME='cdj_order';