MINUTES_DIFF
minutes_diffβ
descriptionβ
Syntaxβ
INT minutes_diff(DATETIME enddate, DATETIME startdate)
The difference between the start time and the end time is a few minutes
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