操作SQLite数据库报错:“绑定或列的索引超出范围”
Cursor cur = db.query(TBL_NAME, null, where, args, null, null, order);
?按照错误Log提示,继续查找出错位置,发现传入参数where和args数组长度不一致。因此报错“android.database.sqlite.SQLiteException: bind or column index out of range”(绑定或列的索引超出范围)。
解决办法:
找到出错原因后,修改传入参数,保证传入参数where 与args长度一致。