Update
Returns the number of rows affected by the query.
Promise
local affectedRows = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ?', {
newName, identifier
})
print(affectedRows)Aliases
MySQL.Sync.executeexports.ghmattimysql.executeSyncexports.oxmysql.update_async
Callback
MySQL.update('UPDATE users SET firstname = ? WHERE identifier = ?', {
newName, identifier
}, function(affectedRows)
print(affectedRows)
end)Aliases
MySQL.Async.executeexports.ghmattimysql.executeexports.oxmysql.update