SELECT TIMESTAMPDIFF(SECOND, now(), "2016-11-11 00:00:00")
语法为:TIMESTAMPDIFF(unit,datetime1,datetime2),
其中unit单位有如下几种,分别是:FRAC_SECOND (microseconds), SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, QUARTER, or YEAR。
2023-08-17 11:53:40
SELECT TIMESTAMPDIFF(SECOND, now(), "2016-11-11 00:00:00")
语法为:TIMESTAMPDIFF(unit,datetime1,datetime2),
其中unit单位有如下几种,分别是:FRAC_SECOND (microseconds), SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, QUARTER, or YEAR。
下一篇:win下命令行替代品Cmder