mysql - calculate a sum of type time using sql -
How to calculate the timing of this column called "TimeSpaint" in my colon: HH: in MM SQL? I'm using MySQL.
The type of my column is time.
Contains this structure
from time to time 10:00:00 12:00:00 02:00:00 from time to time 08:00:00 09:15:00 01:15:00 time total time spent 03:15:00
SELECT SEC_TO_TIME (SUM (TIME_TO_SEC (`timeSp`)) YourTableName
as time has worked for me Hope this helps.
Comments
Post a Comment