List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:March 19 2004 6:13pm
Subject:Re: newbie: increment an existing record
View as plain text  
miasmo@stripped wrote:
> Is there a mysql command that will increment the value of a field in an 
> existing row? I would think this would be pretty basic, but I can't seem 
> to find anything in the online documentation.

update t1 set f = f + 1
> 


-- 
Sasha Pachev
Create online surveys at http://www.surveyz.com/
Thread
newbie: increment an existing recordmiasmo19 Mar
  • Re: newbie: increment an existing recordSasha Pachev19 Mar
Re: newbie: increment an existing recordbeacker19 Mar
  • Re: newbie: increment an existing recordmiasmo19 Mar
    • Re: newbie: increment an existing recordBrad Eacker19 Mar