クエリー
それ以外の場合は、insertId や affectedRows などのデータを返します。
約束
Lua
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.fetchAllexports.ghmattimysql.executeexports.oxmysql.query_async
コールバック
Lua
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.fetchAllexports.ghmattimysql.executeexports.oxmysql.query
Last updated on