Select records from start of month to current date

后端 未结 5 1365
别那么骄傲
别那么骄傲 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 08:55

    WHERE YEAR([Date])=YEAR(GETDATE())
    AND MONTH([Date])=MONTH(GETDATE())
    AND DAY([Date])<=DAY(GETDATE())
    

提交回复
热议问题