Re: SUM of TIMEDIFF
It looks like you're trying to get the number of seconds from one time to the other in an integer format. If so, try this:
SELECT SECOND(TIMEDIFF(time_start, time_end))
FROM table1;
The SECOND() function will extract the second value from a datetime value.
Please let me know if this work for you. If it didn't, please give me more details on what you're trying to get at.
Russell Dyer
Author of "MySQL in a Nutshell" (O'Reilly 2005).
Subject
Written By
Posted
Re: SUM of TIMEDIFF
July 09, 2005 09:15PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.