I want to update a row in sqlite. My query looks like this
update name="aaa",publisher="ppp",price="111" where bookid=5 and booktype="comic"
I want to update by using the following update command .
int android.database.sqlite.SQLiteDatabase.update(String table, ContentValues values, String whereClause, String[] whereArgs)
What should be the parameters for “whereClause” and “whereArgs”. I am searching in Internet but I am not getting related examples. please help me.
You can update it using this code:
DatabaseCreator.class:
Now use below code where you need to update the row: