Re: mysql newbie question...

From: Date: Wed, 13 Dec 2000 19:04:04 +0000
Subject: Re: mysql newbie question...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30147@lists.php.net to get a copy of this message
On Wed, 13 Dec 2000, jalist wrote: > I've tried to find out how to do this and drawn a blank... > All I want to do is increment a field in a mysql table. Do I need to read > the value in, ++ it and then write it back to the db, or can I do this as > part of the db query, ie within the UPDATE blah SET... query? > > Thanks in advance. > > Steve > Yes. UPDATE blah SET blah=blah+1, ... -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#30147) next »