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: can't create table in SQL script?

Re: can't create table in SQL script?

From: Karsten Weikop <karsten_at_isa.dknet.dk>
Date: 1998/10/06
Message-ID: <3619C365.134DD99B@isa.dknet.dk>#1/1

You need to use dynamic SQL.

Look in file $ORACLE_HOME/rdbms/admin/dbmssql.sql

Regards

Karsten Weikop
Make IT
Denmark

Email: karsten_at_weikop.dk

badstreetboy_at_my-dejanews.com wrote:
>
> I have a simple create table statement in SQL script. When I complie it in
> SQLPLUS, there is an error:
>
> PLS-00103: Encountered the symbol "CREATE" when expecting one of
> the following:
> begin declare exit for goto if loop mod null pragma raise
> return select update while <an identifier>
> <a double-quoted delimited-identifier> <a bind variable> <<
> close current delete fetch lock insert open rollback
> savepoint set sql commit <a single-quoted SQL string>
>
> Why this happen?
> Thanks.
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Received on Tue Oct 06 1998 - 00:00:00 CDT

Original text of this message

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