Hi, I'm new in MTA Scripting i learned some things and i have a problem with an SQL Query :
Here is the script:
function SQLDelColumnInTable( thePlayer, commandName, tabletarget, column )
local query = executeSQLQuery( "ALTER TABLE ? DROP COLUMN ? ", tabletarget, column )
if(query)then
outputChatBox( "Column: " ..column.. " in table "..tabletarget.." has been deleted !", thePlayer )
else outputChatBox( "The column can't be deleted, an error has occured", thePlayer )
end
end
addCommandHandler( "deletecolumn", SQLDelColumnInTable )
And When i test my command the Server send me this error message:
ERROR: Database query failed: near "DROP": syntax error
Can someone help me ?