![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 27 Aug 2015 @ 11:38:06 GMT
<-- 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
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||