我正试图从数据库中检索数据,询问如下:
select * from Oil Where date(DDate)=date( 2012-08-07 );
where DDate is one of the column in the Oil table with datatype text.I get the Arrayindexoutofboundsexception. I found that it is not returning any value the count is 0. can anyone help me with this.What i am actually trying is to do is store date value in the table.I couldn t find which datatype should be used to save date,from the sqlite site is that it doesn t have a particular datatype for date and time.