------解决方案-------------------- 如果不需要考虑数据是否存在,直接插入不就好了吗?如果需要,加上where ..not exists 做下判断
create or replace procedure pro_ins as
begin
insert into tb1 select * from tb1_temp;
insert into tb2 select * from tb2_temp;
insert into tb3 select * from tb3_temp;
insert into tb4 select * from tb4_temp;
end;
楼主主要纠结的是哪个环节呢?
------解决方案--------------------
merge into 存在就更新,不存在就插入 ------解决方案--------------------