赞
踩
– 获取年份 YEAR(CURDATE()); 2019
– 获取月份 MONTH(CURDATE()); 6
– 当前时间 DATE(CURDATE()); 2019-06-11
– 获取年月 date_format(CURDATE(), ‘%Y%m’) 201906