查询出来的结果插入别的表:
insert into table1
select a.id, a.name,.. .. .. .a.class, 'table独有的字段'
from table2 a
where a.id >= '1';
或
insert into table1 b(b.id,b.name,b.sex,b.class)
select a.id, a.name,.. .. .. .a.class, 'table独有的字段'
from table2 a
where a.id >= '1';
table1 是要插入的表 ,
table2 查询的表