📅  最后修改于: 2022-03-11 15:05:17.644000             🧑  作者: Mango
-- Replace curdate() with your date column
SELECT curdate(),
DATE_SUB( curdate(), INTERVAL DAYOFMONTH(curdate())-1 DAY ) AS '1st of month';