I'm making an android app and using a sqlite db. In particular I'm using the rawQuery method on a db obtained through a SqlliteOpenHelper. The query I build makes use of the "?" marks as placeholders for the real values, which are passed along as an array of objects. (eg, select * from table where id = ?) The question is, is it possible to get the query with the marks already replaced, at least from the cursor returned from the rawQuery method? I mean something like "select * from table where id = 56". This would be useful for debugging purposes.
Aucun commentaire:
Enregistrer un commentaire