I'm trying to delete multiple rows with a single command:
String[] args = {"1143997,1144373,1144375,1144383,1144385,1144389"};
int n;
n = db.delete("mytable", "recno IN (?)", args);
Log.d(TAG, "Deleted " + n + " rows");
But it doesn't work. Neither did
db.execSQL("DELETE FROM mytable WHERE recno IN (?)", args);
But if I fetch the database file with adb pull, run sqlite3 from the command line, and type
DELETE FROM mytable WHERE recno in (1143997,1144373,1144375,1144383,1144385,1144389);
it works just fine. Any idea what I'm doing wrong?