Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 27 Aug 2015 @ 16:18:41 GMT


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


Subj:   Re: Timestamp(6) with default value
 
From:   Dieter Noeth

Anomy.Anom wrote:

  I understand your point but I want the timestamp to be in this specific format only - 'YYYY-MM-DD-HH.MI.SS.nnnnnn' instead of 'YYYY-MM-DD HH:MI:SS.nnnnnn'  


You can define this specific format, but this is for cast from/to a string. When you specify a TIMESTAMP literal there's always only one valid format and you still have to use it:

     create table test
        ( mytp     TIMESTAMP(6)   NOT NULL   FORMAT 'YYYY-MM-DD-HH.MI.SS.S(6)'
                                  DEFAULT TIMESTAMP '9999-12-31 01:01:01.000001'
        );

Dieter



     
  <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