moisesbr Posted August 22, 2013 Share Posted August 22, 2013 How can I use update mysql command to add + 1 to a numeric field of a table ? I would like to increment the column "count" +1 every time I execute it. Moises Link to comment https://forums.phpfreaks.com/topic/281477-update-field-table-value-1/ Share on other sites More sharing options...
AbraCadaver Posted August 22, 2013 Share Posted August 22, 2013 Not PHP, but: UPDATE `table_name` SET `count` = `count` + 1 Link to comment https://forums.phpfreaks.com/topic/281477-update-field-table-value-1/#findComment-1446356 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.