Archives of the TeradataForum
Message Posted: Wed, 16 Jan 2008 @ 23:03:51 GMT
Subj: | | Re: Convert time from twenty four hour to twelve hour format |
|
From: | | Fred W Pluebell |
TIME and CURRENT_TIME(n) seem similar in that they both return some "time of day" value, but as you discovered they are not
interchangeable.
The data type returned by the old built-in function TIME is actually FLOAT. CURRENT_TIME or CURRENT_TIME(0) returns type TIME(0) WITH TIME
ZONE.
(By contrast, DATE and CURRENT_DATE both return a type of DATE.)
|