moisesbr Posted August 22, 2013 Share Posted August 22, 2013 (edited) 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 Edited August 22, 2013 by moisesbr Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.