【发布时间】:2018-07-28 01:26:16
【问题描述】:
Oracle存储过程有OUT参数并返回结果集,例如
create or replace procedure foo(empId IN NUMBER, maxSalary OUT NUMBER) AS BEGIN
select * from Employee e where e.id >=empId;
select max(salary) into maxSalary from Employee;
END;
错误:
PLS-00428: an INTO clause is expected in this SELECT statement
Mysql存储过程既可以返回结果集,也可以返回out参数。 oracle db怎么做?
【问题讨论】: