exception
when others then
--do something;
when others then
--do something;
解决方案 »
- sql 语句怎么写?合并花圈的两条
- 在plsql developer中如何给表设一个自增主键
- 有没有经典的oracle数据库压力性能测试sql段子?
- VB.net连接oracle,要求不用客户端不写注册表怎么做
- 求一句SQL!
- 对SDO_GEOMETRY类型数据的读取和导入
- 求一复杂排序的SQL语句
- 如何编写视图的SQL
- exp出来的文件是否要设置filesize
- extract(year from :dt)出错?
- 下列语句在Oracle 9i中出错,错误信息如下(我用具有的dba权限的账号登陆,但不是是sys和system账号)
- 请教各位大哥:为什么老是“ORA-01031:insufficient privileges"
'before update
on '||t||
'begin
p_tt(sys.login_user,‘||t||’,''tt'');
end;';
exception when user_excp then
raise_application_error(-20000,‘****用户错误****’);
when others then
null;
可是:ORA-20000: ****用户定义错误*****
ORA-06512: 在"YUANLINA.CHECK_BY_RULES", line 69
ORA-06512: 在line 1
的最后两行不是其他异常引起的错误而是告之错误位置的。但怎么才能不在
可户的应用程序中显示这些位置信息呢,我只需要应用程序知道为什么错了
就可以了。唉!!!艰难啊!要向各位高手好好学习了。有的问题从书上也不知道怎么找
。最近累呀!
我的过程如下:
p_test(user_name in varchar2)
is
user_error exceprion;
begin
if user_name!='ss' then
raise user_error;
end;
exception when user_error then
raise_applicaton_error(-20000,'用户错误');
when others then
null;
end;
然后我用的不是ss用户,当然会出错了。