【发布时间】:2020-12-22 10:24:04
【问题描述】:
我正在尝试在具有格式 (hh:mm:ss.ms) 的 mysql 中添加时间,但添加后毫秒值变为 00
我尝试的是
SEC_TO_TIME(sum(time_to_sec(TIMEDURATION)))
据我所知,它将时间转换为秒,而毫秒却没有得到任何东西。我的时间格式是这样的 19:30:10.903
【问题讨论】:
-
想要的输出
-
请相应地阅读sql tag info 和edit 中的指南。另外,For the 1024 time – DateTime has no format!
-
@Oyeme 这对毫秒不起作用
标签: mysql sql datetime sum date-arithmetic