3,497
社区成员
发帖
与我相关
我的任务
分享
create or replace pro_t1 (in_1 varchar2,in_2 varchar2) is
begin
declare
cursor cur_t1 is select m1,m2 from t2 where m1=1;
type_t1 cur_t1%rowtype;
begin
open cursor cur_t1
fetch cur_t1 into type_t1;
insert into t2 (p1,p2,p3,p4) values (type_t1.m1,type_t1.m2,in_1,in_2);
close cur_t1;
end;
end ;