我的查询有问题,我没有数据,我的语法是否正确?
StringBuilder sb = new StringBuilder().append(MyTable.FIELDONE)
.append(" in (?, ?, ?) AND ").append(MyTable.FIELDTWO)
.append("=? AND ").append(MyTable.FIELDTHREE).append("=?");
String[] args = new String[] { "1", "2", "0", "0", "0" };
Cursor cCategory = getActivity().getContentResolver().query(
MyTable.CONTENT_URI, MyTable.PROJECTION, sb.toString(), args,
MyTable.SORT_ORDER);