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 -> Re: Dynamically spescifying a select clause for a cursor

Re: Dynamically spescifying a select clause for a cursor

From: Matthias Gresz <GreMa_at_t-online.de>
Date: 1998/03/24
Message-ID: <6f7ted$496$2@news01.btx.dtag.de>#1/1

On Mon, 23 Mar 1998 16:19:55 -0600, fkgrass_at_hotmail.com wrote:

>How do I dynamically specify the select for a cursor. Here is what I want to
>do. This is just an example of what i want to do.
>declare
>c_cursor cusor;
>l_sql long:= 'select * from dual';
>begin
> open c_cursor for l_sql;
> for em in c_cursor loop
> ....
> end loop;

 Keep in mind that for loop implicitly opens and closes your cursor.
>end;
>
>Any ideas?
>
>Thanks,
>Fred Grass
>
>-----== Posted via Deja News, The Leader in Internet Discussion ==-----
>http://www.dejanews.com/ Now offering spam-free web-based newsreading

--

Regards

Matthias Gresz    :-)

GreMa_at_T-online.de
Received on Tue Mar 24 1998 - 00:00:00 CST

Original text of this message

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