Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 30 Sep 2004 @ 14:38:19 GMT


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


Subj:   Timestamp(0)
 
From:   Howard Bradley

This is probably very simple but so am I and hence I can't figure it out. I have a timestamp(6) column on a table but I don't want to display the fractional part of the seconds when I do a select.

I was hoping I could just re cast it as timestamp(0) but I get error 7454 "date time field overflow". Is there a way of doing this without having to cast to CHAR and subsequently substr

i.e I want to do something like

     sel cast(current_timestamp as timestamp(0))

rather than do something like

     sel substr(cast(current_timestamp as char(26)),1,19)

Thanks



     
  <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