Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 27 Aug 2015 @ 15:56:09 GMT


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


Subj:   Re: Timestamp(6) with default value
 
From:   Pluebell, Fred

A TIMESTAMP literal value must be specified in the standard format 'YYYY-MM-DD hh:mi:ss.ssssss' regardless of the column format clause.

     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'
        );

Note that the FORMAT will only be applied when the database converts to/from a character string, e.g. in BTEQ field mode or when you explicitly CAST(mytp as CHAR(26)) in SQL Assistant, Teradata Studio, etc.



     
  <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