Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 15 Dec 2006 @ 13:10:15 GMT


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


Subj:   Re: Widen a column length with the ALTER TABLE
 
From:   Anomy Anom

<-- Anonymously Posted: Friday, December 15, 2006 04:28 -->

Hello,

So is this metod valid for changing lenghts or types of columns? Surely one does not have to rebuild the table to achieve this?

I often have requirements to change the DataType or Length of DataType.

Par exemple:

     create table test ( sno int, addr varchar(10), sno1 decimal(16,2))
     primary
     index (sno);

     show table test;


     CREATE SET TABLE DBA_DB.test ,NO FALLBACK ,
     NO BEFORE JOURNAL,
     NO AFTER JOURNAL,
     CHECKSUM = DEFAULT
     (
     sno INTEGER,
     addr VARCHAR(10) CHARACTER SET LATIN NOT CASESPECIFIC)
     sno INTEGER,
     PRIMARY INDEX ( sno );


     alter table test add sno1(decimal(18,4));

Regards



     
  <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