Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> PL/SQL "table" question...
I have created a package as follows:
type admintab is table of cmn_gpm_admin.admin_empno%type
not null index by binary_integer; function GetAdmin(appln in cmn_gpm_admin.application%type)
return admintab;
end Admin;
/* Package Body */
create or replace package body Admin as
function GetAdmin(appln in cmn_gpm_admin.application%type) return admintab is
l_admin admintab;
begin
: :
end Admin;
/* end of package body for Admin */
The problem is not in the package specs or its body, both compile fine. But I am trying to execute this package within sqlplus and it is this script which gives the problem. The script I use is:
When I try to execute this script, I get the following error:
ORA-06550: line 6, column 10: PLS-00382: expression is of wrong type ORA-06550: line 7, column 50: PLS-00487: Invalid reference to variable 'ADM'
Question1:
Question2:
Thanks for ur replies.
VJ.
-- Vijay Damodaran vijayd_at_nortel.com Work: (972) 685-8150Received on Wed May 21 1997 - 00:00:00 CDT
![]() |
![]() |