Jump to content

MySql ROWS


Tony Brand

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...