更新
クエリの影響を受けた行の数を返します。
約束
Lua
local affectedRows = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ?', {
newName, identifier
})
print(affectedRows)別名
MySQL.Sync.executeexports.ghmattimysql.executeSyncexports.oxmysql.update_async
コールバック
Lua
MySQL.update('UPDATE users SET firstname = ? WHERE identifier = ?', {
newName, identifier
}, function(affectedRows)
print(affectedRows)
end)別名
MySQL.Async.executeexports.ghmattimysql.executeexports.oxmysql.update
Last updated on