Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Wed, 06 Nov 2002 @ 06:45:53 GMT





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




Subj:   Adding a Column with a default value
 
From:   Richard Crawford



Hi,

We want to add a column to a table which already has rows in it. The new column is a DATE column with a default value of '2002- 10-31'. When we issue this statement:


BTEQ> alter table temp.TABLE_NAME
      add NEW_COLUMN DATE format 'yyyy-mm-dd' default '2002-10-31';

It comes back with an error
'3630 default incompatible type of column NEW_COLUMN'

Can anyone tell me what is wrong with the default value and/or why it doesn't accept that.

We are on V2R3


Thanks

Rich





     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008