Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 26 Oct 2012 @ 16:04:50 GMT


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


Subj:   Re: How to Convert a VARCHAR date into TIMESTAMP(0) format
 
From:   Billingslea, Drew

You might want to try

     SELECT CAST('20121024 11:46:13' AS VARCHAR(20)) AS vc_time_var, CAST(vc_time_var AS
     TIMESTAMP(0) FORMAT 'YYYYMMDDBhh:mi:ss' ) AS ts_converted_col

Hth,

drew



     
  <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