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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Urgent: modify column name

Re: Urgent: modify column name

From: Stephane Faroult <sfaroult_at_oriolecorp.com>
Date: Fri, 06 Jul 2001 00:40:04 -0700
Message-ID: <F001.0034279A.20010706002102@fatcity.com>

Djaroud Salim wrote:
>
> hi every body,
> I'm on oracle 7.3.4 is it possible to mdify a column name ?
> very urgent !!!!!!!!!!!
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Djaroud Salim
> INET: SDJaroud_at_france-secours.com
>

No, unless you do morally questionable updates to the dictionary.

Alternative :

   Suppose that you have table T(C1, C2, C3) and want to rename C2 to D.

   rename T to T_back;
   create table T as select C1, C2 D, C3 from T_back;    drop table T_back;

 Beware that by doing so all grants on T will have to be recreated.

--
Regards,

  Stephane Faroult
  Oriole Corporation
------------------------------------------------------------------
http://www.oriolecorp.com, designed by Oracle DBAs for Oracle DBAs
------------------------------------------------------------------
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriolecorp.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Jul 06 2001 - 02:40:04 CDT

Original text of this message

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