Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Returning an array from a procedure/ function
I'm struggling to work out how to return an array(table) from a pl/sql
function/procedure. I have tried various methods using both functions
and procedures.
I currently have the following code:
CREATE OR REPLACE PACKAGE MyPackage as
TYPE ARRAY IS TABLE OF VARCHAR2(250);
PROCEDURE MyProcedure(MyArray IN OUT ARRAY);
END;
/
CREATE OR REPLACE PACKAGE BODY MyPackage IS
PROCEDURE MyProcedure(MyArray IN OUT ARRAY) is
BEGIN
<snipped>
END;
END;
/
Do excuse the poor quality of the above code. I haven't been doing this very long. All suggestion and critism greatly recieved.
Cheers Simon Received on Fri Jul 04 2003 - 10:46:48 CDT
![]() |
![]() |