Skip to Content

クエリー

それ以外の場合は、insertId や affectedRows などのデータを返します。

約束

local response = MySQL.query.await('SELECT `firstname`, `lastname` FROM `users` WHERE `identifier` = ?', { identifier }) if response then for i = 1, #response do local row = response[i] print(row.firstname, row.lastname) end end

別名

  • MySQL.Sync.fetchAll
  • exports.ghmattimysql.execute
  • exports.oxmysql.query_async

コールバック

MySQL.query('SELECT `firstname`, `lastname` FROM `users` WHERE `identifier` = ?', { identifier }, function(response) if response then for i = 1, #response do local row = response[i] print(row.firstname, row.lastname) end end end)

別名

  • MySQL.Async.fetchAll
  • exports.ghmattimysql.execute
  • exports.oxmysql.query
Last updated on