我的代码:
Cursor mCursor = mDB.query(true, DB_TABLE, new String[] {NUMBER, INVOICEID, SNAME, NUMBERPHONE, ADDRESS, URL, STATUS, IDDELIVER }, IDDELIVER + "='" + iddeliver+"'" + "AND"+ STATUS+"='Chuagiao'", null, null, null, null, null);
我不虚张声势?
尝试使用这个:
Cursor mCursor = mDB.query(true, DB_TABLE, new String[] {NUMBER, INVOICEID, SNAME, NUMBERPHONE, ADDRESS, URL, STATUS, IDDELIVER }, IDDELIVER + "='" + iddeliver+"'" + " AND "+ STATUS+"='Chuagiao'", null, null, null, null, null);
我想你忘记了"AND"
您的查询应该是这样的:"iddeliver AND STATUS='Chuagio'
目前它看起来像这样:"iddeliverANDSTATUS='Chuagio'