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: Create table

Re: Create table

From: DA Morgan <damorgan_at_psoug.org>
Date: Mon, 04 Dec 2006 08:31:36 -0800
Message-ID: <1165249894.177685@bubbleator.drizzle.com>


Yam wrote:
> Hi,
>
> I have a table called tab1 with the following filelds: fld1, fld2 and
> fld3 and I want to create another table tab2 from tab1, with an
> additional field fld0 added at the beginning, i.e. fld0, fld1, fld2 and
> fld3, how can I do that?
>
> Can I use syntax such as create table tabl2 ... as select ... from
> tabl1?
>
> Yam.

Yes. But why did you ask? You could have easily answered the question by trying it.

Unless the syntax you are using includes the words DROP or TRUNCATE the chances of you doing something unrecoverable are nill.

Experiment!

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Mon Dec 04 2006 - 10:31:36 CST

Original text of this message

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