How to update field to add value to existing value? For example I have
Table name: table
table
id credit 1 4 2 5 3 3
This is just a simple UPDATE. Try the following.
UPDATE
UPDATE tableName SET Credit = Credit + 7 WHERE ID = 1
note that ID = 1 and ID = '1' is the same as the server automatically parses it.
ID = 1
ID = '1'