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: PL/SQL cursor : from VARIABLE

Re: PL/SQL cursor : from VARIABLE

From: M. Armaghan Saqib <armaghan_at_yahoo.com>
Date: Tue, 14 Dec 1999 13:09:44 GMT
Message-ID: <835fim$k6$1@nnrp1.deja.com>


Can't be done this way. Use DBMS_SQL to define and use dynamic cursors.

regards,
M. Armaghan Saqib


<ulysse51_at_my-deja.com> wrote in message news:<8356q7$qu6 $1_at_nnrp1.deja.com>...
> hi all
>
> in PL/SQL, i want to declare a cursor
> where the table name is a variable like
>
> cursor rec (table_name in varchar2) is
> select *
> from table_name;
>
> but it doesn't work
> thank you for your help
> FRED
Sent via Deja.com http://www.deja.com/
Before you buy. Received on Tue Dec 14 1999 - 07:09:44 CST

Original text of this message

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