日期:2014-05-18  浏览次数:20412 次

定时复制表
有两个结构相同的表A与表B
想定时将表A中的数据复制到表B中,同时删除表A中的数据。表B中的数据是历次复制之和。

------解决方案--------------------
写个job

insert into b select * from a
truncate table a

------解决方案--------------------
insert into b select * from a where......
delete from a where....
------解决方案--------------------
就是作业了