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 Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 28 Jun 2020