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: Putting multiple CREATE TABLE statements in one *.SQL is really not possible ?

Re: Putting multiple CREATE TABLE statements in one *.SQL is really not possible ?

From: Arto Viitanen <arto.viitanen_at_csc.fi>
Date: Mon, 26 Feb 2007 09:30:58 +0200
Message-ID: <45e28cb2$0$1719$ba624cd0@newsread.funet.fi>


Steven Prasil wrote:
> I put a couple of CREATE TABLE statements into one sql sheet/file similar to:
>
> CREATE TABLE A ( ..... )
>
> CREATE TABLE B ( ..... )
>
> CREATE TABLE C ( ..... )
>
> and try to run them against an Oracle database. However Oracle resp. Toad/SQL Editor
> told me "Invalid option". Why ?
>
> Even when I append a semicolon after each CREATE TABLE statement it does not run.
>
> Is this really not possible ?
>
> Steven
>
>

I guess you should use / instead, like

CREATE TABLE A ( ... )
/

CREATE TABLE B ( ... )
/

CREATE TABLE C ( ... )
/

at least with SQL*Plus.

-- 
Arto Viitanen, CSC Ltd.
Espoo, Finland
Received on Mon Feb 26 2007 - 01:30:58 CST

Original text of this message

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