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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now