本文介绍了如何在单个函数中调用多个过程?请帮忙!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的代码:
here is my code:
create or replace function fn_dml_oprs
return number
as
procedure prc_insert
as
pragma autonomous_transaction;
begin
insert into t1 values(250) where A=20;
commit;
end;
procedure prc_update
as
pragma autonomous_transaction;
begin
update t1 set A=300 where A=10;
commit;
end;
procedure prc_delete
as
pragma autonomous_transaction;
begin
delete from t1 where A=30;
commit;
end;
begin
prc_insert;
prc_update;
prc_delete;
return 0;
end;
/
推荐答案
这篇关于如何在单个函数中调用多个过程?请帮忙!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!