Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

About renaming a column - forum topic by Kbos

$
0
0

Hi everyone
 
I've created a table and I want to modify the datatype to one field from Char(4) to Char(5) but it is not possible....I tried to rename the column using the following statement and it was executed OK.

ALTER TABLE Table2
RENAME Desc_Catalog as Desc_Catalog_Tm,  ADD Desc_Catalog CHAR(5) 

and I've realized that the new field which is Desc_Catalog (which has the new datatype) does not contain any information at all. Is there any way that once the rename has been done the new field contain the data? I dont want to create a temporary table and once it has been created, pass the data from the temporary table to the new one.
 
Thanks in advance

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>