Re: mysql adding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steven Morgan wrote:
is there anyway to add 1 to an int with 1 mysql query, i know i can pull the value down with a SELECT then add 1 with php.. then do an UPDATE on it.. but i didn't know if there was any other way?

Do you mean this:


UPDATE tablename SET intcol = intcol + 1

?

Hans

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux