DECLARE newID varchar2(50);
begin
insert into table1 (aa,bb) values('7777','8888') RETURNING ID INTO newID;
COMMIT;
insert into table2 (pid) values(newID);
end;
转载于:https://www.cnblogs.com/yuany69/p/6210087.html
DECLARE newID varchar2(50);
begin
insert into table1 (aa,bb) values('7777','8888') RETURNING ID INTO newID;
COMMIT;
insert into table2 (pid) values(newID);
end;
转载于:https://www.cnblogs.com/yuany69/p/6210087.html