Re: Adding in MySQL

From: Date: Tue, 11 Nov 2003 17:07:38 +0000
Subject: Re: Adding in MySQL
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-31525@lists.php.net to get a copy of this message
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

« previous php.db (#31525) next »