Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> create table as select ... with index (copy a table structure)

create table as select ... with index (copy a table structure)

From: bernhard labus <bernhard.labus_at_home.ins.de>
Date: Wed, 27 Dec 2000 16:16:32 +0100
Message-ID: <3a4a0740$0$8780$4dbef881@businessnews.de.uu.net>

Hello everybody

it is easy to create a table B as copy of A (only structure, no data): "create table B as select * from A where rownum=0;"

**But** :
with the statement above I get **no indices** for the new table B.

??
Is it possible to create table B as copy of A with indices? Not wanted:
- export-import / long statements
Wanted:
something *like* : "create table B as select * from A where rownum=0 including indices" Received on Wed Dec 27 2000 - 09:16:32 CST

Original text of this message

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