我的代码:
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);
我在位置上不假?
答案 0 :(得分:2)
试试这个:
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);
答案 1 :(得分:2)
我想你忘记了"AND"
您的查询应如下所示:"iddeliver AND STATUS='Chuagio'
目前它看起来像这样:"iddeliverANDSTATUS='Chuagio'