我想根据当前时间获取最近六个月的日期,请问以下SQL中的方法在MYSQL中改怎么写,求大神指教

2025-05-07 04:15:21
推荐回答(1个)
回答1:

select date_format( now( ) , ‘%Y%m’ ) , date_format(date_sub(now(),interval 6 month) , ‘%Y%m’ )