H2 SQL Date Comparison

江枫思渺然 提交于 2020-01-04 04:21:06

问题


In an H2 database on a column of type TIMESTAMP how do I run a query

SELECT * FROM RECORDS WHERE TRAN_DATE < '2012/07/24'

回答1:


Try '2012-07-24'

http://www.h2database.com/html/grammar.html?highlight=dateType&search=date#date



来源:https://stackoverflow.com/questions/11634403/h2-sql-date-comparison

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!