Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 11 Jul 2011 @ 08:54:56 GMT


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


Subj:   Cast date to timestamp
 
From:   Anomy Anom

<-- Anonymously Posted: Monday, July 11, 2011 01:48 -->

HI All,

Is there a way to use cast function to convert a date field to timestamp. I have table with a field defined as date. Now, I am recreating this table with field's data type modified to timestamp(6). How can I insert the data back with datetime

Tried insert into dt values(cast('2011/07/11' as timestamp(6))) But it is failing with error code 6760 "invalid timestamp"


Thank You



     
  <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: 27 Dec 2016