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'
本文标题:数据库函数 截取日期格式记下来(不常用)
本文链接:https://www.haomeiwen.com/subject/tdfjektx.html
网友评论