Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Thu, 22 Feb 2007 @ 13:13:30 GMT





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




Subj:   Re: Alter Table from Datype date to timestamp
 
From:   Barry Hull



You have to explicitly cast the original column to a TIMESTAMP data type like this:

     UPDATE mytable
       SET new_col = CAST(old_col AS TIMESTAMP);




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