Delete multiple rows using IDs?
问题 How can I delete multiple rows by a list of IDs in Android SQLite database? I have defined a general delete method in this manner: protected void deleteWhere(String whereClause, String[] whereArgs) { try { databaseHelper.getWritableDatabase().delete( getTableName(), whereClause, whereArgs); } finally { databaseHelper.close(); } } And now I'm trying to call it with a list of IDs: public void deleteAll(Iterable<T> entities) { Iterable<Long> ids = Iterables.transform(entities, getId); String