Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> cursor in function
with the following code,
create or replace function opendir(did in integer, uid in integer)
return
types.cursortype
as dir_cursor types.cursortype;
begin
open dir_cursor for select filename, filetype, filesize, description, downloads from files, ug
where
files.parent = did
and ( files.groupid in
(select ug.groupid
from ug
where ug.userid = uid and gstatus = 0)
or files.permission > 1 )
order by directory, filename;
return dir_cursor;
end;
/
0/0 PL/SQL: Compilation unit analysis terminated 1/57 PLS-00201: identifier 'TYPES.CURSORTYPE' must be declared
Where do i need to declare this?
Thanks a lot, Dan Received on Fri Jun 11 1999 - 10:47:01 CDT
![]() |
![]() |