Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 27 Aug 2015 @ 11:38:06 GMT


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


Subj:   Timestamp(6) with default value
 
From:   Anomy Anom

<-- Anonymously Posted: Thursday, August 27, 2015 07:35 -->

Hi,

I am trying to create a table with a field of timestamp(6) data type with format 'YYYY-MM-DD-HH.MI.SS.nnnnnn' and with a default value of '9999-12-31-01.01.01.000001'.

I used the following create statement but it fails saying "Invalid Timestamp Literal".

Can anyone please help me with the correct syntax ?

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

Can anyone please help me with the correct syntax ?


Thanks



     
  <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: 27 Dec 2016