I am having a table named as goal, inside that there are two columns ID (primarykey autoincreement)
and amount(long int)
By default the long int value will be 0. Is it possible to update this row by adding amount in addition.
Initially its 0, if someone donated some amount, then the current amount would be updated by donated amount.
For eg.
Current Amount = 50(in database)
Amount Donated = 10
So after updating the row the amount should be 60.
I can do this by first selecting the amount and then updating it, but is there any alternative of this?
You can update it in-place.