Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 31 Jul 2003 @ 23:31:54 GMT


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


Subj:   Re: Create Table -> date default
 
From:   Christie, Jon

Try:

activity_dt DATE NOT NULL FORMAT 'mm/dd/yyyy' DEFAULT DATE '0001-01-01'

It works for me. Note that the date in the default clause is in yyyy-mm-dd format.

By the way, internally, Teradata dates are stored as yyyymmdd - 19000000.

-18989899 + 19000000 = 00010101

Any date before January 1st, 1900 will have a negative number internally.



     
  <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