注册 登录
编程论坛 Oracle论坛

一个pl/sql存储函数的问题,一直报错!

wyh416 发布于 2022-06-07 11:45, 668 次点击
create or replace function func_sumSal(d_no in emp.emptno%type ) return emp.sal%type
     is
     sum_sal number;
     begin
       select sum(sal) into sum_sal from emp where emptno=d_no;
       return sum_sal;
       end;



-- 在练习的过程中,写了一个存储函数,实在是找不到问题出在哪里了,麻烦路过大神指点一下
1 回复
#2
wyh4162022-06-07 11:51
一直报错:程序包或者函数处于无效状态
1