挿入
新しいエントリをデータベースに挿入し、有効であればその行の挿入 ID を返します。
約束
Lua
local id = MySQL.insert.await('INSERT INTO `users` (identifier, firstname, lastname) VALUES (?, ?, ?)', {
identifier, firstName, lastName
})
print(id)別名
MySQL.Sync.insertexports.ghmattimysql.executeSyncexports.oxmysql.insert_async
コールバック
Lua
MySQL.insert('INSERT INTO `users` (identifier, firstname, lastname) VALUES (?, ?, ?)', {
identifier, firstName, lastName
}, function(id)
print(id)
end)別名
MySQL.Async.insertexports.ghmattimysql.executeexports.oxmysql.insert
Last updated on