![](//teradataforum.com/imgs/ptdfw1.gif) |
![](//teradataforum.com/imgs/ptdfw2.gif) |
Archives of the TeradataForum
Message Posted: Mon, 11 Jul 2011 @ 08:54:56 GMT
Subj: | | Cast date to timestamp |
|
From: | | Anomy Anom |
<-- Anonymously Posted: Monday, July 11, 2011 01:48 -->
HI All,
Is there a way to use cast function to convert a date field to timestamp. I have table with a field defined as date. Now, I am recreating
this table with field's data type modified to timestamp(6). How can I insert the data back with datetime
Tried insert into dt values(cast('2011/07/11' as timestamp(6))) But it is failing with error code 6760 "invalid timestamp"
Thank You
| |