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: Batching of SQL commands

Re: Batching of SQL commands

From: Arne Beenck <Arne.Beenck_at_de.bosch.com>
Date: Thu, 1 Aug 2002 14:25:31 +0200
Message-ID: <aib9f2$ml$1@ns2.fe.internet.bosch.com>


Hello Simon,

> If I try the same kind of thing in SQL Plus, for example:
>
> CREATE TABLE FIRST (<table definition>)
> CREATE TABLE SECOND (<table definition>)
> CREATE TABLE THIRD (<table definition>)
>
> I get a "Missing or invalid option" error at the CREATE TABLE SECOND line.
I
> tried wrapping these statements in a BEGIN...END; block but that didn't
help. I
> also get the same kind of problem when batching multiple ALTER TABLE
statements.
>

in Oracle all statements needs a semicolon at the end.

Try

CREATE TABLE FIRST (<table definition>); CREATE TABLE SECOND (<table definition>); CREATE TABLE THIRD (<table definition>);

Arne Received on Thu Aug 01 2002 - 07:25:31 CDT

Original text of this message

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