|
|
Archives of the TeradataForum
Message Posted: Wed, 03 Jan 2007 @ 13:06:29 GMT
Subj: | | Re: Casting integer as Time |
|
From: | | Victor Sokovin |
| To insert into the Time(0) column, Im trying to cast integer as char and then casting that again to time(0). But I keep getting the error
Invalid Ansi time. Can you please suggest me a method to tackle this problem? | |
| The query is as below. The column declared as integer is TRANS_TIME. | |
What is the meaning of that integer? Can you provide an example?
In Teradata, a field of TIME(0) stores data as hours (24-hour format), minutes and seconds (as separate entities), so the input for such a
field must be structured accordingly.
For example, if the meaning of TRANS_TIME is the number of seconds since midnight then you will have to do the maths and calculate the
corresponding HH24:MI:SS value.
Regards,
Victor
| |