Comparing date in Access SQL query

后端 未结 2 838
遥遥无期
遥遥无期 2021-02-14 04:37

I\'m having trouble with Access sql query. Im new to this so bieng a rookie its difficult to figure out the syntax. below is my query.

SELECT *
FROM BookingMaste         


        
相关标签:
2条回答
  • 2021-02-14 04:55

    try this..

    SELECT * FROM BookingMaster where (JourneyDate >= #01/08/2012#) and (JourneyDate < #01/09/2012#);
    
    0 讨论(0)
  • 2021-02-14 05:08

    Unless you are working in a US locale, it is best to use a year, month, day format for dates:

    SELECT *
    FROM BookingMaster where JourneyDate = #2012/08/01#;
    
    0 讨论(0)
提交回复
热议问题