select DATE_FORMAT('2024-10-11' - INTERVAL 1 MONTH,'%Y-%m') '一', DATE_FORMAT('2024-10-11','%Y-%m') '二', DATE_ADD('2024-10-11', INTERVAL 1 MONTH) '三' ,DATE_FORMAT(DATE_ADD('2024-10-11', INTERVAL 1 MONTH) ,'%Y-%m') '四',REPLACE(DATE_FORMAT(DATE_ADD('2024-10-11', INTERVAL 1 MONTH) ,'%Y-%m'),'-','') '五',REPLACE(DATE_FORMAT('2024-10-11' ,'%Y-%m'),'-','') '六'from dual
展示结果: