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 -> How to Insert a Column between existing columns?

How to Insert a Column between existing columns?

From: sealo <seahalo_at_gmail.com>
Date: 8 Jan 2007 19:19:44 -0800
Message-ID: <1168312784.295902.287170@38g2000cwa.googlegroups.com>


Hello,
I want to insert a new column in the specified position to a exsited table. But all the default operation of adding column is to append the new column at the tail.

There seems no SQL statement for my purpose.

For example:
The existing table have columns
ID NUMBER(10)
AGE NUMBER(10) I want to insert a new column NAME (VARCHAR2 (30)) between ID and AGE. Then, the expectation should like this.

ID NUMBER(10)
NAME VARCHAR2 (30)
AGE NUMBER(10) Is there some method for this ? Received on Mon Jan 08 2007 - 21:19:44 CST

Original text of this message

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