表存在的情况下这样用:insert into a (name,age) select (name,age) from b如果不存在的话这样用:select name,age into a from b 以上,希望对你有所帮助!
编写读取和插入程序就能搞定。
insert into table1 select col1,col2,col3 from table2