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

Home -> Community -> Usenet -> c.d.o.server -> Re: cursor fetching

Re: cursor fetching

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Mon, 02 Aug 2004 06:50:20 -0700
Message-ID: <1091454655.487596@yasure>


Agoston Bejo wrote:

> Hi Daniel,
> the example you sent is fine, but it's quite a simple example.
> In my case, there's no table for the %ROWTYPE of which you could define a
> variable, since the columns it returns don't correspond to any table's
> rowtype. What to do then? And you don't know the rowtype of the cursor in
> advance, either. You only know that the columns in the cursor contain some
> of those relevant to your computations.
>
> Gus

You don't need a table for ROWTYPE. You can define individual variables, or you can define a cursor used only for purposes of defining a ROWTYPE, or you can create an array. There are lots of possibilities. Look at this page for examples:
http://www.psoug.org/reference/bulk_collect.html

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Mon Aug 02 2004 - 08:50:20 CDT

Original text of this message

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