我目前正在做一个使用vb.net和mysql数据库的项目,我只想问一下,我怎样才能在mysql工作台中格式为hh:mm:sec的列中汇总2个或更多的时间条目。
例如,我将以下数据存储在我的数据库中:
|03:45:00|
|03:12:00|
|03:08:57|
样表
总计应为10:05:02
我尝试使用这个查询对整个列数据求和,但我认为我做错了。
Select sum(Hours_worked) as Total
from db_project
where
Date_of_entry between '2019-02-04' and '2019-02-15'
order by
Date_of_entry asc;
https://stackoverflow.com/questions/54815952
复制相似问题