借助 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)