Audrey:

What you want is a cursor variable. A cursor variable references a cursor
object and may refer to different SQL statements at different times. In your
case, the most important benefit of the cursor variable would be that it
provides a mechanism for passing results of queries (the rows returned by
fetches against a cursor) between different PL/SQL programs.

Jon Walthour

-----Original Message-----
Sent: Sunday, September 16, 2001 2:55 PM
To: Multiple recipients of list ORACLE-L



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

* 03-9254520
* 053-464562
* mailto:[EMAIL PROTECTED]


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Andrey Bronfin
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Walthour, Jon (GEAE, Compaq)
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to