标签:art datetime 时间段 date nbsp rac uart now() ros
SELECT TIMESTAMPDIFF(SECOND, now(), "2012-11-11 00:00:00")
语法为:TIMESTAMPDIFF(unit,datetime1,datetime2),
其中unit单位有如下几种,分别是:FRAC_SECOND (microseconds), SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, QUARTER, or YEAR。
mysql 两个时间段的差,可以是秒,天,星期,月份,年...
标签:art datetime 时间段 date nbsp rac uart now() ros
原文地址:http://www.cnblogs.com/ilvutm/p/7152476.html