|
|
Archives of the TeradataForum
Message Posted: Fri, 04 Aug 2006 @ 13:24:55 GMT
Subj: | | Casting Character To Timestamp |
|
From: | | PryorCh |
Hi Everybody
I have a field labeled xyz_timestamp but it's defined as xyz_timestamp char x(17). It actually contains the data of a timestamp, format
'YY/MM/DD HH:Mi:SS'. I want to cast it as a timestamp(0), so that I can compare to other dates. The problem is the cast isn't working. I get
the error message 3706 invalid timestamp. Here's what I'm trying: cast (xyz_timestamp as timestamp(0) format 'YY/MM/DD HH:MI:SS') . Any help
would be greatly appreciated. Thanks
| |