Re: Adding in MySQL

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

 



Dillon, John wrote:
Can I UPDATE an int record with MySql and add 1 to it? without extracting it
into a variable first?  If so, what am I looking for in the www.mysql.com
manual.  Seems it only deals with SELECT and WHERE.

Would have taken you two seconds to actually try this...


UPDATE Table SET column = column + 1

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
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