delete(String table, String whereClause, String[] whereArgs)
update(String table, ContentValues values, String whereClause, String[] whereArgs)
What is this String[] whereArgs
? Is it connected with "?" (so called wild card)?
Yes, the String[] whereArgs
contains the arguments to be appended to the whereClause
.
For example, you want to make a delete query:
delete from InfoTable where name = "ABC" and id = "23"
then the query should be:
delete("InfoTable", "name = ? AND id = ?" , new String[] {"ABC", "23"});
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