1. 禁用所有的 触发器和约束 ;
2. update t x set (c1,c2..) = (select c1,c2 ... from t@老库 where t.id = x.id ) where exists(select * from t@老库 where t.id = x.id) ,范围:所有表;;
3. 使用 insert into t select * from t@老库 where id not in (select id from t) ,范围:所有表;;
4. delete t where id not in (select id from t@老库) ,范围:所有表;
5. 启用所有的触发器和约束;