create or replace procedure c
(
v_deptno in emp.deptno%type,
v_max out emp.sal%type
)
as
begin
select max(sal+nvl(comm,0)) into v_max from emp where deptno=v_deptno;
end;
外面执行
var max number;
exec c(20,:max);
print max
存储过程
最新推荐文章于 2024-10-05 22:47:23 发布