您的位置:首页 > 其它

ORA-01403: no data found

2013-05-12 23:58 483 查看
ORA-01403: no data found
触发器一旦使用到select into赋值就会可能产生找不到数据赋值,使用异常处理机制。
begin
      select P into v_rate from classpoint    where rtrim(classcode) =:new.code;

exception
when no_data_found then

       v_rate := 1;
end;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: