TIME is a Teradata extension that returns a FLOAT data type, while CURRENT_TIME is an ANSI standard that returns a TIME(0) WITH TIME ZONE data type. TIME lacks intelligence and will error if an addition or subtraction causes the time to exceed 59 seconds or minutes to exceed 59, whereas CURRENT_TIME handles overflow correctly.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
38 views
What Is Difference Between TIME and CURRENT
TIME is a Teradata extension that returns a FLOAT data type, while CURRENT_TIME is an ANSI standard that returns a TIME(0) WITH TIME ZONE data type. TIME lacks intelligence and will error if an addition or subtraction causes the time to exceed 59 seconds or minutes to exceed 59, whereas CURRENT_TIME handles overflow correctly.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
What is difference between TIME and CURRENT_TIME?
First difference is that TIME is a teradata extension and
CURRENT_TIME is a ANSi standard.
Second difference is that data type returned by the TIME function is a FLOAT. However CURRENT_TIME or CURRENT_TIME(0) returns type TIME(0) WITH TIME ZONE.
The TIME function lacks intelligence. Which means SELECT TIME + 40; would give an error if current time is 23:24:34 because 34+40 seconds would lead to 74 seconds which is not valid