Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 03 Jan 2007 @ 13:40:39 GMT


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


Subj:   Re: Casting integer as Time
 
From:   Lokare, Parag

Hey I did the following

Assumption:

Integer column has value 180723 to represent time as 18:07:23

Table: create table TTime(tt time(0));


You can use the following for inserting time 180723 (i.e 18:07:23 )into TTime using ODBC

     insert into ttime(tt)
        sel Cast (Cast( 180723 as time(0)) as char(10) )


     
  <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