接触oracle不久,请问在存储过程中,有没有在循环语句中遇到异常错误,跳过继续执行的方法语句?

解决方案 »

  1.   

    出现异常就跳到EXEPTION里了。从EXEPTION里再想办法吧
      

  2.   

    exception when others then
    null;
      

  3.   

    begin
         for ...... loop
             begin
                   do_something
             execption
                   when others then
                   null;
             end
         end loop
    按照这个格式即可
      

  4.   

    begin
         for ...... loop
             begin
                   do_something
             execption
                   when others then
                   null;
             end
         end loop
    end
    按照这个格式即可刚才少了一个end