我试图用getContentRsolver().query()
与多个选择项,但无法找出正确的语法。我得到"SQLiteException: bind or column index out of range"
如何使用getContentResolver()。query for Multiple selectionargs?
contactNumberArray
是一个字符串数组,它具有所有的联系号码。
getContentRsolver().query(CONTENT_URI, Projection, caller_number + "=?", contactNumberArray, null);
此查询工作正常,如果我只有一个字符串数组中的联系号码,但如果我有多个联系人号码这是行不通的。有没有什么特定的方法来查询多个selectionargs?
请让我知道如果有人有任何关于这个问题的指针?
什么编程语言?什么SQLite库?什么平台? –
抱歉,忘记提及这一点。编程语言是Java,平台是Android Froyo 2.2。 – Abhi