[求助]如何调用包中的存储过程???在线等待!
下面是我写得包和调用,总是出错!
create or replace package test as
type test_id is table of kogdb.staff.id%type;
procedure getStaffInfo
(
myid out test_id
) ;
end test;
************************************************************
create or replace package body test as
procedure getStaffInfo
(
myid out test_id
)
as
cursor mycursor is select staff.id from staff order by id asc;
counter number default 1;
begin
for c in mycursor loop
myid(counter) := c.id;
counter := counter + 1;
end loop;
end;
end test;
************************************************************
调用:
declare
type ddd is table of staff.id%type ;
kk ddd;
begin
test.getstaffinfo(kk);
end;
总是出现下面的错误,请帮忙解决
ORA-06550: 第 5 行, 第 6 列:
PLS-00306: 调用 'GETSTAFFINFO' 时参数数量或类型错误
ORA-06550: 第 5 行, 第 6 列:
PL/SQL: Statement ignored