SQL query to select dates between two dates

后端 未结 22 1685
囚心锁ツ
囚心锁ツ 2020-11-22 09:10

I have a start_date and end_date. I want to get the list of dates in between these two dates. Can anyone help me pointing the mistake in my query.<

22条回答
  •  日久生厌
    2020-11-22 09:37

    I like to use the syntax '1 MonthName 2015' for dates ex:

       WHERE aa.AuditDate>='1 September 2015'
         AND aa.AuditDate<='30 September 2015'
    

    for dates

提交回复
热议问题