I want to add lets say 40 to an existing number in a colum.
Like i want to add 40 vote points to every player.
I want to add lets say 40 to an existing number in a colum.
Like i want to add 40 vote points to every player.
try this:
where player = tablename and votepoints = votepoints columnCode:Update player set votepoints=((select votepoints from player;)+40);
This should do it for all players if you want to do it for 1 player add a 'where' statement
grtz![]()
That wont work, but you can simply do this:
Replace id with the player idCode:UPDATE table SET column = column + 40 WHERE column = id;
it should work the thing i said... maybe not perfectly right syntax but it should as it is exacly the same as what you doonly you guys do it shorter
UPDATE `table` SET `column`+='40' WHERE `column`='id';
there is something coolI don't know how i didn't post that >< I learn java at school, we use that all the time xD