mardi 1 décembre 2015

SQLite multiply query

How to do somithing like this:

"SELECT * FROM table_name WHERE name = ? AND id IN (?, ?, ?)"
//selection: name + " = ? AND " + id + " IN (?, ?, ?)";
//selectionArgs[]: new String[] {"David", "2", "6", "7"});

it's not working, where is error?. I am using:

query(@NonNull Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)

Aucun commentaire:

Enregistrer un commentaire