1.问题原因:存储过程中的,select a.xx(字段) into 变量名 from a(表名)where …。当语句中查询的数据为null时,返回的数据为空就会报错。2.解决办法:在对应语句结束;分号后面增加exception when data_no_found 进行异常捕捉处理。例如:select a.xx into 变量名 from a where id =1;exception when data_no_found then DBMS_OUTPUT.PUT_LINE(‘不存在数据’);