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: Other precompilers besides Pro*C????

Re: Other precompilers besides Pro*C????

From: Kenneth C Stahl <BluesSax_at_Unforgettable.com>
Date: Thu, 15 Jul 1999 07:42:23 -0400
Message-ID: <378DC91F.81DCF1D3@Unforgettable.com>


What you need to do is learn how to use dynamic sql. It is well documented in the manuals.

Ken

shockerman_at_my-deja.com wrote:

> Does anyone know of any other precompilers like Pro*C that would work
> with Oracle 7.3 and would maybe allow me to use a host variable within
> a DDL statement. I'm getting that error in Pro*C when I try to do
> something like:
>
> EXEC SQL create table :tablenamefromc (rid number);
>
> The exact error is here.
>
> Parser error at line 66, column 24, file
> c:\practice\finals\byday\byday.pc:
> EXEC SQL create table :sorted (rid number);
> .......................1
> (1) PCC-S-02206, Host variables are not permitted within a DDL statement
>
> If you don't specifically know if this will work in another compiler
> could you suggest it anyways so I can find out. Thanks.
> James
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Received on Thu Jul 15 1999 - 06:42:23 CDT

Original text of this message

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