oracle存储过程查找表数据插入另一个表中。。

2024-11-02 14:43:41
推荐回答(1个)
回答(1):

不用存储过程,直接INSERT就行
insert into D
(select * from A where
mz not in(select mz from B) and
jg not in(select jg from C));

你要存储过程的话再加个壳
create or replace procedure XXX
IS
begin
insert into D
(select * from A where
mz not in(select mz from B) and
jg not in(select jg from C));
end;
/