Using String[] selectionArgs in SQLiteDatabase.query()

selectionArgs replace any question marks in the selection string.

for example:

String[] args = { "first string", "second@string.com" };
Cursor cursor = db.query("TABLE_NAME", null, "name=? AND email=?", args, null);

as for your question – you can use null

Leave a Comment

tech