获取指定表字段元数据信息
select COLUMN_NAME,DATA_TYPE,COLUMN_COMMENT,COLUMN_KEY,EXTRA from information_schema.columns where table_schema='库名' and table_name= '表名'
获取表元数据信息
select TABLE_NAME,TABLE_COMMENT from information_schema.tables where table_schema = '库名' and table_name = '表名'
批量查询后插入
Insert into 表(字段1,字段2) select 字段1,字段2 from 表