日期:2014-05-18 浏览次数:20761 次
表A 有100条记录
表B 有100000000条记录
插入表B中没有的表A记录
更新表B中 存在表A的记录
-----------------------------------------------
insert into b select * from a where id not in (select id from b)
update b set col = a.col from b,a where a.id = b.id