存儲過程裡的事務操作
create or replace procedure pr_mypro
temp varchar
is
begin
select code into p_count from table
temp := p_count; /**//*將返回值賦給臨時變量*/
savepoint point
insert into table
savepoint point
insert into
exception
when others then
rollback to savepoint point
return;
end;
保存點(SAVEPOINT)是事務處理過程中的一個標志
如果定義了多個savepoint
例如
From:http://tw.wingwit.com/Article/program/Oracle/201311/16520.html