vendredi 8 janvier 2016

how to print Sqlite cursor log in android?

Cursor cursor = null;
db.openDatabase();
cursor = db.execQuery("select person_id, person_name" + " from person_table where person_id in (" + stringBuffer.toString() + ") order by person_name_jp asc");

code as above

then how can I print the cursor's string ("select person_id,person_name from person_table where ...") to logcat?

Aucun commentaire:

Enregistrer un commentaire