• 存储过程中的when others then 和 raise


    EXCEPTION
      when others then
        rollback;
        dbms_output.put_line('code:' || sqlcode);
        dbms_output.put_line('errm:' || sqlerrm);
    
        raise;
    when others then和raise;
    分别是什么意思
     
    异常分很多种类,如NO_FOUND。others处本应该写异常名称,如果不想把异常分得那麼细,可以笼统一点用others来捕获,即所有异常均用others来捕获。
    when others then表示是其它异常。
    raise表示抛出异常,让User可以看到。
    http://blog.csdn.net/myflysun/article/details/7547141
  • 相关阅读:
    channel分析
    Nginx|基础
    item2
    搜索引擎技巧
    计算机网络|概述
    操作系统|进程
    分布式事务一致性
    画图工具StartUML
    内存分配
    MPG分析
  • 原文地址:https://www.cnblogs.com/langtianya/p/5066651.html
Copyright © 2020-2023  润新知