Mysql把一个表的记录导入到另外一张表

如果两个表结构完全一样的,用insert into table2 select * from table1
如果结构不一样或者你要指定字段,用insert into table2(字段1,字段2,字段) select 字段j,字段k,字段m from table1

posted on 2012-03-28 20:52  linzuxin  阅读(128)  评论(0编辑  收藏  举报

导航