17,090
社区成员
发帖
与我相关
我的任务
分享
loop
begin
select col into v_col from tbname ;
exception
when no_data_found then
--exception handle
when value_error then
--exception handle
when other then
--exception handle
end ;
end loop;
--原来是这样的
loop
select col into v_col from tbname ;
end loop ;
--改成这样的,就会把异常吃掉了,但是别忘了异常处理,起码也应该记录一下吧.
loop
begin
select col into v_col from tbname ;
exception
when no_data_found then
--exception handle
when value_error then
--exception handle
end ;
end loop;