Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: PL/SQL procedure to return multiple rows
hi Andrew,
consider using a array (pl/sql table) as a return datatype of your function. Inside the function open ur cursor and populate that set of rows u wanna return into the return datatype.. which would be an array in this case. note that u must define a global array in some package first so that u could thereafter define and start using the array as a return datatype of ur function.
if all the above sounds mumbo jumbo to u then let me know .. i will send e.g. 2 u next time;)
hth
deepak
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Deepak Thapliyal INET: deepakthapliyal_at_yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Sun Sep 16 2001 - 14:17:36 CDT