Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 13 Apr 2010 @ 18:43:22 GMT


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


Subj:   Re: Decimal(10,0)
 
From:   Baig, Mohammad

Hi

These are the rules as per altering the DECIMAL column.

DECIMAL(n,f) DECIMAL(m,f) Can change only as follows:

* m >= n, no change in f

* n = 1 or 2, m < 3

* n = 3 or 4, m < 5

* n = 5 to 9, m < 10

* n = 10 to 15, m <= 18


This approach is good if you are changing the column in a table having less data. If data is massive please do in following method.

Create new table with changed column length and insert whole data in new table , then delete the old table and rename new table as older.(This will be fast and safe approach)


Thanks & Regards

Mohammad Usman Baig



     
  <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