-1

我的代码:

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);

我不虚张声势?

4

2 回答 2

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);
于 2012-12-12T08:57:44.430 回答
2

我想你忘记了"AND"

您的查询应该是这样的:"iddeliver AND STATUS='Chuagio'

目前它看起来像这样:"iddeliverANDSTATUS='Chuagio'

于 2012-12-12T09:00:00.490 回答