Globally change value in MySQL -


i have following "problem". have mysql db, has around 200k records. in 1 of columns have number (decimal). globally add particular value values in column.

for example if there 1000, change lets 1005, 1002 change 1007 etc. etc.

one way downloading whole db, open in excel, there, save cvs , upload new db, quite time consuming , maybe overcomplicated, thought if there way of doing using sql command directly in phpbb.

update mytable set columnname=columnname+5 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -