Tony Brand Posted October 29, 2018 Share Posted October 29, 2018 Hi, i made a SQL Resource with 354 datas, now i added a new Column to it and i want to make a cmd that gets value from PRICE column and sets it in to the OPRICE column!(i want to do it with a cmd instead of changing every line OPRICE value with my hands) addCommandHandler("sqlfix", function(price, oprice) local query = dbQuery(handler, "INSERT INTO houses (OPRICE) values ('PRICE')") local result, numrows = dbPoll(query, dbpTime) if(result) then outputServerLog("Mission Done!") end end) upper code, won't work, please help, tnx Link to comment
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