Tuesday, May 8, 2012

Is format String[] whereArgs correct in SQLiteDatabase.delete?

Why this code:



String[] ids = {"5", "1", "3"};
db.delete(ACCOUNTS_TABLE, KEY_ROWID, ids);


return this exception?



android.database.sqlite.SQLiteBindOrColumnIndexOutOfRangeException: bind or column index out of range: handle 0x2069a88




No comments:

Post a Comment