mysql return rows matching year month

后端 未结 3 871
独厮守ぢ
独厮守ぢ 2021-01-25 00:37

How would I go about doing a query that returns results of all rows that contain dates for current year and month at the time of query.

Timestamps for each row are for

3条回答
  •  一生所求
    2021-01-25 01:00

    select * from someTable where year(myDt) = 2009 and month(myDt) = 9 and day(myDt) = 12
    

提交回复
热议问题