Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Putting multiple CREATE TABLE statements in one *.SQL is really not possible ?
On Feb 24, 3:36 pm, pra..._at_nortel.com (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
You can run multiple CTAS or just CREATE TABLE statements fine in SQL*Plus so it is a TOAD issue. Did you end each statement with a semicolon or '/' to execute the statement?
Try using SQLPlus. It is simple, efficient, and GUI free.
HTH -- Mark D Powell -- Received on Mon Feb 26 2007 - 09:08:20 CST
![]() |
![]() |