declare
begin
for i in 1..10 loop
begin
if i=5 then
insert into mas values(i,'mas');
else
insert into mas values(i,i);
end if;
exception when others then
dbms_output.put_line('exception');
--raise_application_error(-20001,'test');
end;
end loop;
exception when others then
dbms_output.put_line('exception');
end;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30201626/viewspace-1813633/
,如需转载,请注明出处,否则将追究法律责任。