Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Appending rows to a cursor

Appending rows to a cursor

From: Mathias Nilsson <mathias.nilsson_at_NOSPAMeng.ericsson.se>
Date: Mon, 31 Aug 1998 08:50:32 +0200
Message-ID: <35EA47B8.C98B48CC@NOSPAMeng.ericsson.se>


Is it possible to append rows to a cursor in PL/SQL (Oracle v7.3.4)? To specify a bit more. I need to loop through a cursor, passing parameters from that cursor to a SELECT statement (or cursor), and appending all resulting rows to a new cursor. When the loop is finished, I need to return the cursor (with the appended rows) from the function. In pseudo code it looks something like this:

CURSOR pre_cursor IS SELECT ...
CURSOR main_cursor(parameters) IS SELECT ...

OPEN pre_cursor
LOOP
 APPEND rows from pre_cursor to main_cursor END LOOP
RETURN main_cursor

I have posted a similar question once before, but never gotten a reply. Hopefully I'll have better luck this time.

Thanks in advance
Mathias

PS Don't forget to remove NOSPAM when replying via email. Received on Mon Aug 31 1998 - 01:50:32 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US