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: Any expert Pro*C/C++ programmer out there?

Re: Any expert Pro*C/C++ programmer out there?

From: Ramon F Herrera <ramon_at_conexus.net>
Date: 13 Mar 2007 15:55:09 -0700
Message-ID: <1173826509.856503.322690@b75g2000hsg.googlegroups.com>


On Mar 13, 2:58 am, Laurenz Albe <inv..._at_spam.to.invalid> wrote:
> Ramon F Herrera <r..._at_conexus.net> wrote:
>
> > In my application, the critical variable which is only known at run
> > time is none less than the table name. It is something like this:
>
> > SELECT emp_name FROM $table_name WHERE emp_id = :some_unique_id;
>
> I think that 'dynamic SQL' is what you are looking for.
>
> Yours,
> Laurenz Albe

Exactly. Oracle provides four ways to use Dynamic SQL:

The first two cannot be used in queries (SELECT) and the last one is more than I need. Therefore, I have to use Method 3.

-Ramon Received on Tue Mar 13 2007 - 17:55:09 CDT

Original text of this message

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