Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 15 May 2003 @ 09:33:27 GMT


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


Subj:   Re: Inserting Timestamps using Queryman
 
From:   David Wellman

Hi,

The following works. (It ain't pretty but it works).

create table t1 (c1 timestamp(0));
insert into t1 values( cast(substring(cast(current_timestamp as
char(32))
from 1 for 19) as timestamp(0)) );

I've never found an easy way of converting between different Timestamp formats. I always end up (as above) casting to CHAR, substring to get the correct data nd then casting back into the new timestamp data type.


Cheers,

Dave



     
  <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