【发布时间】:2014-08-29 10:41:34
【问题描述】:
id time lastTime
1 08:02
2 08:04
3 08:30
我将此查询与strtotime() 一起使用,但它不起作用。
UPDATE table
SET lastTime = strtotime(time) - strtotime('08:00');
怎么做?
【问题讨论】:
-
strtotime()是 php 函数而不是 mysql 函数。 -
你还想达到什么目的?
标签: php mysql time subtraction