Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 05 Aug 2008 @ 16:39:27 GMT


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


Subj:   Alter Table Error 2559: Column COLUMN1 is not NULL
 
From:   Ramaswamy, K

Hi,

When I try to execute the below alter table statement through sql assistant, I get the below error.

     Alter table DATABASE1.TABLE1
     ADD      COLUMN1 DECIMAL(13,0) NOT NULL COMPRESS 0.
     ;

     3559:  Column COLUMN1 is not NULL and it has no default value.

     Output directed to Answerset window

But the same statement works on a different database in the same data warehouse.

     Alter table DATABASE2.TABLE1
     ADD      COLUMN1 DECIMAL(13,0) NOT NULL COMPRESS 0.
     ;

Any idea why this happens? Is there something in the setting of database 1 which prevents it from taking the keyword compress? I overcame the error in database 1 by removing the word COMPRESS and replacing it with the word DEFAULT, but I am not able to understand why the statement works in one database and not in another.


Regards,

Ramaswamy



     
  <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: 27 Dec 2016