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


     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.


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



  <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