Skip to Content

挿入

新しいエントリをデータベースに挿入し、有効であればその行の挿入 ID を返します。

約束

local id = MySQL.insert.await('INSERT INTO `users` (identifier, firstname, lastname) VALUES (?, ?, ?)', { identifier, firstName, lastName }) print(id)

別名

  • MySQL.Sync.insert
  • exports.ghmattimysql.executeSync
  • exports.oxmysql.insert_async

コールバック

MySQL.insert('INSERT INTO `users` (identifier, firstname, lastname) VALUES (?, ?, ?)', { identifier, firstName, lastName }, function(id) print(id) end)

別名

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