Home Page for the TeradataForum
 
https:

Archives of the TeradataForum

Message Posted: Wed, 06 Nov 2002 @ 09:45:10 GMT


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


Subj:   Re: Adding a Column with a default value
 
From:   Deepa Nagaraj

hi,

the default date in ur alter statement is a char. u need to convert it to date type. rephrase ur alter statement as follows:

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

this should work for u.



     
  <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: 28 Jun 2020