我通过 我创建了选择字符串 然后我想用光标 但是现在,Cursor线抛出了Nullpointer,我不明白为什么。
我加载的数据库有6列,我使用了正确的列名,但它仍然抛出异常。SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(dbfile, null);
String select = "Column1 like " + "'%Incoming%'" + " and " + "Column2 not like " + "'%null%'";
Cursor curs = db.query(true, TABLE1, new String[]{COLUMN1}, select, null, null, null, COLUMN2 + " DESC", null);