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: Using host variables with cursors

Re: Using host variables with cursors

From: Bricklen <bricklenREMOVETHIS_at_shaw.ca>
Date: Sun, 24 Feb 2002 04:14:43 GMT
Message-ID: <3C786835.21954AC9@shaw.ca>


try declaring the variable first:

variable table_name varchar2(60)

Blasting Bubbles wrote:
>
> I'm trying to use a cursor like this...
>
> Exec sql declare cursor for select * from :table_name;
>
> but it gives me an error at :table_name. Is there a reason that I can't use
> a variable here? Is there another solution?
>
> BB
Received on Sat Feb 23 2002 - 22:14:43 CST

Original text of this message

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