在存储过程中select column into t_prop 。。。
当查询不到值的时候会报错,这时候的处理方法为:
使用聚合函数,比如:
create or replace procedure test is t_prop varchar2(20); begin select max(sales_no) into t_prop from sales_card where 1=2; end test; 即可。
当然也要根据业务确定是否需要这样的数据
服务器租用/服务器托管中国五强!虚拟主机域名注册顶级提供商!15年品质保障!--亿恩科技[ENKJ.COM]
0371-601359007*24小时客服服务热线