[ACCEPTED]-Android SQLite rawquery parameters-sqlite

Accepted answer
Score: 45

All parameter places should be designated 4 with ?. The parameters to the query are 3 always string nontheless, so nothing special 2 about the integers. This should work for 1 you:

Cursor cur3 = database2.rawQuery("select max(UnixTimeStamp) from Quote where EmoticonID=? and SubCategoryID=?" ,new String [] {String.valueOf(g),String.valueOf(s)});

More Related questions