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 -> how to fetch into varray

how to fetch into varray

From: Donnie Armstrong (HOME) <darmstro_at_isd.net>
Date: Wed, 12 May 1999 21:11:55 -0500
Message-ID: <926561296.614.82@news.remarQ.com>


Hello,

I'm new to 8i NT and I am playing around with the new VARRAY and Object types. Chapter 4 of PL/SQL Users Guide and Reference talks about declaring a VARRAY type of a cursor rowtype. I am wondering how to fetch into that bad boy.

DECLARE
    CURSOR c1 IS SELECT * FROM user_tables;     TYPE user_type IS VARRAY(100) OF c1%ROWTYPE;     my_tables user_type := user_type(); BEGIN
    OPEN c1;
    FETCH c1 INTO my_tables;
    CLOSE c1;
END; Thanks,

Donnie Armstrong
darmstro_at_isd.net Received on Wed May 12 1999 - 21:11:55 CDT

Original text of this message

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