From the official documentation:
The non-equals operator can be either
!=
or<>
So your code becomes:
Cursor findNormalItems = db.query("items", columns, "type != ?",
new String[] { "onSale" });
You should use in the comparator the non-equal operator:
"type!=?"
or "type<>?"
.
You can use <>
operator
You will find here all the basic sql
statements
http://www.firstsql.com/tutor2.htm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With