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

Home -> Community -> Mailing Lists -> Oracle-L -> Suggestions solicited - Change Column Datatype from Number to Var

Suggestions solicited - Change Column Datatype from Number to Var

From: Suri, Deepak <DSuri_at_oxhp.com>
Date: Thu, 24 Oct 2002 12:14:30 -0800
Message-ID: <F001.004F2ECE.20021024121430@fatcity.com>


We have a need to change the datatype of several columns in a table from number to varchar2. Most of the rows have data in these columns hence a direct 'alter table ...' will not work.  

We plan to create a temp table, move the data from these colums to that table, modify the column datatype from number to varchar2 and then update the colums with the data that was moved to the temp table.  

Any suggestions/comments or a better way to do this ? Oh, and we are on 8.1.7.1  

thanx
deepak  

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Suri, Deepak
  INET: DSuri_at_oxhp.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Thu Oct 24 2002 - 15:14:30 CDT

Original text of this message

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