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 -> Re: Renaming Fields in an Oracle Table

Re: Renaming Fields in an Oracle Table

From: Kai Horstmann <horst_at_werum.de>
Date: Thu, 28 Jan 1999 13:11:14 +0100
Message-ID: <36B053E2.CBC4292D@werum.de>


kwelty_at_my-dejanews.com schrieb:
>
> Can someone give me some insight into the process that is required to > change
> a field name in an Oracle Table?

Hi

there is no direct possibility to change the name of the column. You have to rename the table and create a new one with the old name with create table xxx (col1,col2,col3) as select col1,oldcol,col3 from renamed_table;

Drop renamed_table.
create indexes and constraints like the ones on your old table.

Hope that helps
Kai Received on Thu Jan 28 1999 - 06:11:14 CST

Original text of this message

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