Increment a value in a MySQL database with one query?

From: Date: Sat, 16 Mar 2002 08:58:59 +0000
Subject: Increment a value in a MySQL database with one query?
Groups: php.general 
Request: Send a blank email to php-general+get-88738@lists.php.net to get a copy of this message
Is there a MySQL function that I can use to increment the integer value of a row entry with one query? Here's the combined PHP and SQL in psuedo code form... UPDATE mytable SET myval++ Something like that. So I dont have to pull the value from the database, increment it, then post it back to the database. Any help will be greatly appreciated, -Keivn

« previous php.general (#88738) next »