借助 DATEDIFF(expr1, expr2) 函数,我们可以查找两个指定日期之间的工作日数。例如,如果我们想查找 '2017-05-27' 和 '2017-05-23' 之间的工作日数,则以下为 MySQL 查询: mysql> Select DATEDIFF('2017-05-27','2017-05-23') AS 'Total Business Days'; +----------------------+ | Total Business Days | +----------------------+ | 4 | +----------------------+ 1 row in set (0.00 sec)