【发布时间】:2016-10-20 05:34:03
【问题描述】:
这个计算
select cast('2016-06-01 00:00:00' as datetime)-cast('2016-05-31 00:00:00' as datetime)
结果在 mySQL 中有 70 000 000。
我知道我不应该使用那个构造,但我很好奇 70000000 是什么?
【问题讨论】:
-
在您减去的时间段内有
86 400 000毫秒。我不知道70百万来自哪里。
标签: mysql datetime date-arithmetic