Skip to Content

シングル

単一の行について選択されたすべての列を返します。

約束

local row = MySQL.single.await('SELECT `firstname`, `lastname` FROM `users` WHERE `identifier` = ? LIMIT 1', { identifier }) if not row then return end print(row.firstname, row.lastname)

別名

  • exports.oxmysql.single_async

コールバック

MySQL.single('SELECT `firstname`, `lastname` FROM `users` WHERE `identifier` = ? LIMIT 1', { identifier }, function(row) if not row then return end print(row.firstname, row.lastname) end)

別名

  • exports.oxmysql.single
Last updated on