JDBC 9i得驱动不能连10g。。怀疑是10g得事务处理不一样了。。
在10g中
例如执行:RAISE no_data_found;。。程序可以报错
但执行
if XXX then
insert into XX values(xx)
commit;
end if
RAISE no_data_found;
在SQLPLUS中报错。但在程序中不报错。为什么??以上代码在9i中没问题
在10g中
例如执行:RAISE no_data_found;。。程序可以报错
但执行
if XXX then
insert into XX values(xx)
commit;
end if
RAISE no_data_found;
在SQLPLUS中报错。但在程序中不报错。为什么??以上代码在9i中没问题
insert into XX values(xx)
commit;
end if
RAISE no_data_found;你把你的代码改改呢?
begin
if XXX then
insert into XX values(xx)
commit;
end if
exception
when no_data_found then null;
end;你试一下,是否在oracle的9i和10g都能编译过去,我这里没有环境,,以前我写pl/sql的时候写例外都是这样写的。