Searching between dates in SQL with JDBC?

前端 未结 3 1927
悲哀的现实
悲哀的现实 2020-12-03 18:55

I\'m currently writing a Java Swing application that reads data in from a MYOB database file and displays certain information in a table. I\'ve been able to successfully gen

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-03 19:29

    It looks like you need to express dates in this format:

    select * from table where datefield between '2006-10-01' and '2006-11-30'

    Look here also, do not forget that google is your friend! :)

提交回复
热议问题