On Sat, 16 Mar 2002, Kevin Stone wrote:
> 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,

   UPDATE mytable SET myval=myval+1
 
miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to