Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 21 Jul 2003 @ 21:23:38 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Alter table modify question
 
From:   Yonina Schuchman

The syntax to alter a column is:
ALTER databasename.tablename
ADD columnname column attributes;

However, you cannot alter the length of a column if it involves adding bytes to the internally stored column length. Instead, create a copy of the table with the new column attributes, insert the data from the old table, and rename the tables. Don't forget to collect statistics on the new copy of the table.



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023