UPDATE `traders_data` SET qty=200 WHERE qty=0 AND afile<>'trade_any_vehicle' AND afile<>'trade_any_boat'
How would I reword that to anything below lets say 20? Gets restocked to 200. I know if I just change 0 to 20 it will only restock stuff that is at 20 nothing below it.
Unless im wrong about that.
Also how would I change that to a function that I can run when needed?
Question
GhostTown
So I have this SQL Event.
UPDATE `traders_data` SET qty=200 WHERE qty=0 AND afile<>'trade_any_vehicle' AND afile<>'trade_any_boat'
How would I reword that to anything below lets say 20? Gets restocked to 200. I know if I just change 0 to 20 it will only restock stuff that is at 20 nothing below it.
Unless im wrong about that.
Also how would I change that to a function that I can run when needed?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now