mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
1.2 KiB
1.2 KiB
keywords, title
| keywords | title | |
|---|---|---|
|
Update |
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Returns the number of rows affected by the query.
Promise
local affectedRows = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ?', {
newName, identifier
})
print(affectedRows)
const affectedRows = await MySQL.update('UPDATE users SET firstname = ? WHERE identifier = ?', [
newName, identifier
])
console.log(affectedRows)
Aliases
MySQL.Sync.executeexports.ghmattimysql.executeSyncexports.oxmysql.update_async
Callback
MySQL.update('UPDATE users SET firstname = ? WHERE identifier = ?', {
newName, identifier
}, function(affectedRows)
print(affectedRows)
end)
MySQL.update('UPDATE users SET firstname = ? WHERE identifier = ?', [
newName, identifier
], (affectedRows) => {
console.log(affectedRows)
})
Aliases
MySQL.Async.executeexports.ghmattimysql.executeexports.oxmysql.update