Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Thu, 27 Aug 2015 @ 14:25:16 GMT

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

Subj:   Re: Timestamp(6) with default value
From:   Tewksbury, Kevin

You have some syntax issues. There should be a space between DD and HH, no dash. There should be semi colons between HH and MI and SS. See below.

     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'

Kevin R Tewksbury
Sr. Database Administrator

  <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: 24 Jul 2020