Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: PL/SQL procedure to return multiple rows
>
> Dear DBAs !
> I need to write a stored proc that will do the following :
> -- open a cursor ;
> -- loop over the rows returned by the cursor ,
> filter out some of the rows that do not match a certain criteria ,
> do some processing on other rows (that match the criteria)
> and then return those rows (the processed data) to the calling program
> ( a PERL DBI script or a java program ) .
> Ho do U return those multiple rows to a calling program ?
> It's Oracle 8.0.5 , NOT 8i :-(
>
> Thanks a lot in advance,
> DBAndrey
Andrey,
I have recently written a paper with Robert Goral showing how to map a view on any PL/SQL table. It should work with 8.0.5, provided that you have the object option installed. You may find it at http://www.oramag.com, and it's complete with a small example. It may not be exactly what you are looking for but might be an interesting alternative.
-- Regards, Stephane Faroult email: sfaroult_at_oriole.com Oriole Corporation Voice: +44 (0) 7050-696-269 Fax: +44 (0) 7050-696-449 Performance Tools & Free Scripts -------------------------------------------------------------- http://www.oriole.com, designed by Oracle DBAs for Oracle DBAs -------------------------------------------------------------- -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Stephane Faroult INET: sfaroult_at_oriole.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 Mon Sep 17 2001 - 03:07:03 CDT
![]() |
![]() |