days_diff
description
Syntax
INT days_diff(DATETIME enddate, DATETIME startdate)
The difference between the start time and the end time is a few days
example
1. mysql> select days_diff('2020-12-25 22:00:00','2020-12-24 22:00:00');
2. +---------------------------------------------------------+
3. | days_diff('2020-12-25 22:00:00', '2020-12-24 22:00:00') |
4. +---------------------------------------------------------+
5. | 1 |
6. +---------------------------------------------------------+
keywords
1. days_diff
