Fratini Posted February 16, 2016 Posted February 16, 2016 Hi! I'm thinking of reduce 1 from a value in SQL. For example: I have a value called 'zeny' from a table called 'debt', which has 300,000. I want to reduce 1 from that value, which goes to 299,999. How can I make that in a sample way? Thank you for your time! Quote
0 Tokei Posted February 16, 2016 Posted February 16, 2016 You could use the following: UPDATE `debt` SET `zeny` = `zeny` - 1 WHERE `zeny` > 0 1 Quote
Question
Fratini
Hi!
I'm thinking of reduce 1 from a value in SQL. For example:
I have a value called 'zeny' from a table called 'debt', which has 300,000.
I want to reduce 1 from that value, which goes to 299,999.
How can I make that in a sample way?
Thank you for your time!
2 answers to this question
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.