Start with an empty table.
Code: Select all
create table table1(a_name varchar2( 160 char ));
Code: Select all
begin
insert into table1 values('first record');
raise no_data_found;
end;
Code: Select all
declare
procedure do_insert
is
begin
insert into table1
values ( 'first record' );
raise no_data_found;
end;
begin
do_insert;
exception
when others then
null;
end;
Now modify the last code like this
Code: Select all
declare
procedure do_insert
is
begin
insert into table1
values ( 'first record' );
raise no_data_found;
end;
begin
begin
do_insert;
exception
when others then
null;
end;
insert into table1
values ( 'second record' );
raise no_data_found;
end;
Is there some way I can disable this "implicit rollback on exception" behaviour?