日期:2014-05-16  浏览次数:20442 次

ORA-01403:no data found 解决方法两则
解决方法一:加一个exception异常处理

begin
    you logic
  exception when no_data_found then
      you need operate/null;
  end;



解决方法二:更改select语句,如:

  select count(*) field into var from table where ....

增加一个count(*)即使没有找到数据,也会返回0,而不是null。