Archives of the TeradataForum
Message Posted: Thu, 27 Aug 2015 @ 16:18:41 GMT
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
|