从一个表中查出数据,插入另外一个表

insert into student (class,age) select Parent,SiteNum from cate

mysql 中已测试

猜你喜欢

转载自cuityang.iteye.com/blog/2341610