Skip to Content

更新

クエリの影響を受けた行の数を返します。

約束

local affectedRows = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ?', { newName, identifier }) print(affectedRows)

別名

  • MySQL.Sync.execute
  • exports.ghmattimysql.executeSync
  • exports.oxmysql.update_async

コールバック

MySQL.update('UPDATE users SET firstname = ? WHERE identifier = ?', { newName, identifier }, function(affectedRows) print(affectedRows) end)

別名

  • MySQL.Async.execute
  • exports.ghmattimysql.execute
  • exports.oxmysql.update
Last updated on