oracle调用包中的存储过程时报参数个数或类型错误,请帮忙指点一下!!!
包头代码:createorreplacepackageemplistallastypeemp_cursorisrefcursor;procedureempall(p_em...
包头代码:
create or replace package emplistall as
type emp_cursor is ref cursor;
procedure empall
(
p_empno in number,
p_all out emp_cursor
);
end emplistall;
包体代码:
create or replace package body emplistall as
procedure empall
(
p_empno in number,
p_all out emp_cursor
) as
type emp_cursor is ref cursor;
begin
open p_all for
select * from emp where empno=p_empno;
--end p_all;
end empall;
end emplistall;
调用方式:
begin
emplistall.empall(9);
end; 展开
create or replace package emplistall as
type emp_cursor is ref cursor;
procedure empall
(
p_empno in number,
p_all out emp_cursor
);
end emplistall;
包体代码:
create or replace package body emplistall as
procedure empall
(
p_empno in number,
p_all out emp_cursor
) as
type emp_cursor is ref cursor;
begin
open p_all for
select * from emp where empno=p_empno;
--end p_all;
end empall;
end emplistall;
调用方式:
begin
emplistall.empall(9);
end; 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询