Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 06 Nov 2002 @ 13:45:11 GMT


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


Subj:   Re: Adding a Column with a default value
 
From:   Anomy Anom

<-- Anonymously Posted: Tuesday, November 05, 2002 16:36 -->

  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.  



yo! u b right on, bro.



     
  <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