MySQL DATE_FORMAT() 函数
SELECT
start_date,
end_date,
category
FROM
erp_hr_leave_statistic
WHERE
DATE_FORMAT(start_date, '%Y-%m')
<= '2020-09'
MySQL DATE_FORMAT() 函数
SELECT
start_date,
end_date,
category
FROM
erp_hr_leave_statistic
WHERE
DATE_FORMAT(start_date, '%Y-%m')
<= '2020-09'