Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 03 Jan 2007 @ 14:14:29 GMT


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


Subj:   Re: Casting integer as Time
 
From:   Anomy Anom

<-- Anonymously Posted: Wednesday, January 03, 2007 09:13 -->

Default cast from CHAR to TIME(0) expects an 8-character string in the format 'HH:MM:SS'.

You may be able to apply an explicit FORMAT on one or both of the CASTs; may require another nested CAST to apply the format. For example

     CAST(CAST(CAST(TRANS_TIME AS FORMAT '99:99:99') AS CHAR(8)) AS TIME(0))


     
  <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