Cursor findNormalItems = db.query("items", columns, "type=?",
new String[] { "onSale" });
我想返回指向非 onSale 的光标,我应该改变什么?谢谢!
最佳答案
来自 the official documentation :
The non-equals operator can be either
!=
or<>
所以你的代码变成了:
Cursor findNormalItems = db.query("items", columns, "type != ?",
new String[] { "onSale" });
关于android - SQLite 中 "not equal"的语法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9386304/