0
这里是我的尝试:如何从SQLite中的日期时间对象查询日期?
rs = statement.executeQuery("select * from geninfo where DeviceTag='" + deviceTag + "' and timestamp='date('"+fromYear + "-" +fromMonth + "-" + fromDay + "')';");
这将类似于此:
select * from geninfo where timestamp='date('2013-07-08')';
的错误是(near "2013": syntax error)
存储的值是“2013年7月8日09: 08:51“
我想选择某一天的所有数据。另外,将另一列存储为日期对象会更容易吗?
确实[这](http://stackoverflow.com/questions/1975737/sqlite-datetime-comparison)的回答帮助? – n0741337