31.08.2016, 18:59
Quote:
Just a fast question, not worth making thread for it;
How can i decrease a specific amount from a MySQL table? Example; I have saved weapon ID 26 with 7 ammo, And i want to take only 3 ammo. so it's gonna be 4 ammo left. How can i decrease it instead of deleting? |
Code:
UPDATE `Table` SET `Column` = `Column` - 3 WHERE `Player` = %d