首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle中关于no_data_found错误的解决

2013-03-26 
oracle中关于no_data_found异常的解决在存储过程中,select name into v_name from table where 条件? 的时

oracle中关于no_data_found异常的解决

在存储过程中,select name into v_name from table where 条件? 的时候,如果没有查询到数据,就不能将v_name进行赋值,就会抛出no_data_found异常,程序不能继续执行解决:select count(*) into v_count from from table where 条件 ;        if(v_count<>0) then           select name into v_name from table where 条件;        end if;
?

?

?

?


我的异常网推荐解决方案:oracle存储过程,http://www.myexception.cn/oracle-develop/177537.html

热点排行