Oracle_scripte/Tanel/demos/recursive_autonomous_transactions.sql
2014-09-17 13:23:48 +02:00

19 lines
303 B
SQL

declare
procedure p is
pragma autonomous_transaction;
begin
begin
insert into t values(1);
-- set transaction read only;
dbms_lock.sleep(1);
-- exception
-- when others then null;
end;
p;
end;
begin
p;
end;
/