📅  最后修改于: 2022-03-11 15:05:32.745000             🧑  作者: Mango
SELECT LAST_DAY(CURDATE()); -- Current month
SELECT LAST_DAY(CURDATE() - INTERVAL 1 MONTH); -- Previous month
SELECT LAST_DAY(CURDATE() + INTERVAL 1 MONTH); -- Next month