java获取oracle存储过程异常信息
存储过程中:
select leftPosition,rightPosition,costRate,updateDate,todayCust,nettingProfitloss,todayNetting,
todayflatplate,flatplateProfitloss,todayHand,handProfitloss
into
class_leftAmt,class_rightAmt,class_costAmt,class_updateDate,class_todayCust,class_nettingProfitloss,class_todayNetting,
class_todayflatplate,class_flatplateProfitloss,class_todayHand,class_handProfitloss
from ck_classTotal
where productCode=total_productCode and currencyName=Detail_currencyName and exposureNumber=Detail_exposureNumber for update wait 1;
if SQL%ROWCOUNT = 0 then
RAISE_APPLICATION_ERROR(-20000,'没有数据!');
end if;
在java代码中如何取得'没有数据!'这个错误描述呢?