Tuesday, March 16, 2010

how to increment the column value in mysql?

  We can increment the column value by
  
     UPDATE images SET counter=counter+1 WHERE image_id=15
   where counter is the column name

No comments:

Post a Comment