Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 23 Nov 2007 @ 13:23:55 GMT


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


Subj:   Re: Coalesce on timestamps
 
From:   ulrich arndt

Hi,

     select type(current_timestamp);

results in

     timestamp(6) with time zone

where your field is defined without the time zone - that's causes the error.

try

     select COALESCE(ins_dtm, cast(CURRENT_TIMESTAMP as timestamp(6)))
        FROM table1

Ulrich

www.data2knowledge.de



     
  <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