如何腾出时间到time_to_minute单位?(与time_to_sec相同)
mysql> select time_to_min('00:00:1');
mysql> select time_to_minute('00:00:1');发布于 2011-10-28 00:09:49
看起来很简单:
SELECT TIME_TO_SEC('00:00:1') / 60发布于 2011-10-28 00:12:55
mysql> SELECT TIMESTAMPDIFF(MINUTE,'2003-02-01','2003-05-01 12:05:55');
-> 128885来源:http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_timestampdiff
https://stackoverflow.com/questions/7918923
复制相似问题