在oracle中要谨慎使用when others then

来源:互联网 发布:网络用语特点 编辑:程序博客网 时间:2024/06/03 03:20

在oracle中一般不要使用when others then,否则会掩盖软件的错误提示。

如果只是判断查不到数据时的处理,应该用when no_datafound then

待续...

原创粉丝点击