Archives of the TeradataForum
Message Posted: Tue, 05 Aug 2008 @ 16:39:27 GMT
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.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|