Select records from start of month to current date

后端 未结 5 1319
别那么骄傲
别那么骄傲 2021-01-25 08:16

I\'m trying to select records that were added to the database between the start of the current month and the current day - I more or less know how to get records from the curren

5条回答
  •  无人共我
    2021-01-25 09:05

    WHERE DateToCheck > LAST_DAY(CURDATE()-INTERVAL 1 MONTH))
    

    http://www.sqlfiddle.com/#!2/3d673/2/0

提交回复
热议问题