Home » questions » Way to increment / decrement field value with MySQL / PHP?
Way to increment / decrement field value with MySQL / PHP?
I want to increment or decrement the value of a field in a mysql table and i was wondering if there is an easier way than what i thought of...
1. Get value, 2. value++, 3. Update value on Mysql.
That seems really inefficient to me (2 query calls just to push a number up by one), so i thought maybe mysql has a function to do this automatically. Thanks for the help.

Answers
NC
On 2006-08-09 10:46:36
John J
On 2006-08-09 10:47:58