MINUTES_DIFF
minutes_diff
description
Syntax
INT minutes_diff(DATETIME enddate, DATETIME startdate)
开始时间到结束时间相差几分钟
example
mysql> select minutes_diff('2020-12-25 22:00:00','2020-12-25 21:00:00');
+------------------------------------------------------------+
| minutes_diff('2020-12-25 22:00:00', '2020-12-25 21:00:00') |
+------------------------------------------------------------+
| 60 |
+------------------------------------------------------------+
keywords
minutes_diff