I have to update a row value form database using 2 values as conditions(1 integer value and 1 string).How can i write this..I wrote the following code..BUt it is showing error.Please rectify me.
long id=db.update(DATABASE_TABLE, initialValues, KEY_ROWID + "=" + update and category ='Income' , null);
Thanks in advance.
Your error is the where statement :
It will be :