Posted By

cjmling on 10/16/10


Tagged

mysql add


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

cjmling
jeremydouglass


Add 1 to a field (MySQL)


 / Published in: MySQL
 

  1. $sql = "UPDATE tablename SET field = field+1 WHERE somefield = $fieldvalue";

Report this snippet  

You need to login to post a comment.