|
|
Archives of the TeradataForum
Message Posted: Thu, 27 Aug 2015 @ 15:56:09 GMT
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.
| |