通常我可以使用以下代码删除记录。
SQLiteDatabase db = openOrCreateDatabase("test.db", Context.MODE_PRIVATE, null);
db.execSQL("DROP TABLE IF EXISTS person");
db.execSQL("CREATE TABLE person (id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR, age SMALLINT)");
db.delete("person", "id = ?", new String[]{"35"});
现在我希望删除一些记录,sql就像
delete from test.db where id in ('6','4')
我该如何编写代码?对吗db.delete("person", "id in ?", new String[]{'6','4'} )
?