如何屏蔽oracle的调试信息? when others then null; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 others 可以捕捉前面所有没有抛出的异常 小弟不太明白,请各位以下面的触发器为例子帮小弟改改,谢谢!begin -- 检查用户ID是否存在 if not UserID_Exists(:new.userid) then raise_application_error(-20000, "用户ID不存在"); end if; :new.ID := get_id_counter('usemodule');end usemodule_trig; begin -- 检查用户ID是否存在 if not UserID_Exists(:new.userid) then raise_application_error(-20000, "用户ID不存在"); end if; :new.ID := get_id_counter('usemodule');exception when others then ……end usemodule_trig;这样试试 cyrano 不是为了解决问题,连引发问题的功能都不要了吗。其实错误信息是个错误栈,里面有从直接引发 error 到最上层调用代码间整个调用层次的错误,您是无法避免的,如果您是不想要 client 端弹出整个错误栈的话,您可以在 java 程序中捕获错误,并使用自己的错误提示,或纸打印错误栈中某条(某调用级的错误),这在 jdbc for oracle 中是可以做到的,请查看您的 jdbc for oracle 的文档。 orcle 触发器 对某一个部门的某个职工涨工资 要求把该部门的职工都涨相同数目 c++ oracle数据库修改的问题? 求教 logminer 问题 ORACLE问题:在应用程序中如何引用PL/SQL编写的过程、函数等 约束问题! 大数据量连表查询的性能问题 请问oracle 对表列的个数有要求吗?每个表最多有多少个列? 一个PLSQL问题? 重复资料删除问题, 机死人了 PROC/C++ SAMPLE CODE的问题(急) 如何学习oracle 各位,哪里有Oracle的Document可以Down,在线等候......
-- 检查用户ID是否存在
if not UserID_Exists(:new.userid) then
raise_application_error(-20000, "用户ID不存在");
end if;
:new.ID := get_id_counter('usemodule');
end usemodule_trig;
-- 检查用户ID是否存在
if not UserID_Exists(:new.userid) then
raise_application_error(-20000, "用户ID不存在");
end if;
:new.ID := get_id_counter('usemodule');
exception
when others then
……
end usemodule_trig;
这样试试