Considering whereArgs
in functions like:
mDatabase.update(TABLE_NAME, values, whereClause, whereArgs)
I know it is used for "?"s in whereClause
, but I have no idea why to invent this whereArgs
instead of inserting the args into whereClause
directly. Did not find any convenience by extracting the "?"s from whereClause
to whereArgs
. Could anyone give a good example that shows how useful is whereArgs
? Appreciate it!