Oracle 异常处理中的then后能给变量赋值吗?如果可以怎么赋值?

解决方案 »

  1.   


    --可以赋值,没什么不一样
    exception
      when others then
        i_date := sysdate;
        i_num := 1;
        ...
    --随便怎么赋值
      

  2.   

    可以赋值的。
    when others then 
    v_date:=sysdate;
      

  3.   

    不要写raise_application_error就行  哈哈
      

  4.   

    可以的 just likeexception 
       when others then
        null;
      

  5.   

    可以赋值
       
       exception
            when others then
            a := 1;
          ....