Let’s say my database shows some games with the attributes
_id | name | player1 | player2 | wins1 | wins2
Now I want to implement a method that increments wins1 or wins2 (due to paramater). But I can’t figure out how to edit a single value without reentering all other values too. How can I do this?
You need to write a sql update query.
Example: