mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 14:38:50 +00:00
1 file changed
+2
-2
@@ -23,7 +23,7 @@ Returns the number of affected rows by the query.
|
|||||||
-- Alias: MySQL.update
|
-- Alias: MySQL.update
|
||||||
|
|
||||||
CreateThread(function()
|
CreateThread(function()
|
||||||
local id = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier})
|
local affectedRows = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier})
|
||||||
if affectedRows then
|
if affectedRows then
|
||||||
print(affectedRows)
|
print(affectedRows)
|
||||||
end
|
end
|
||||||
@@ -46,4 +46,4 @@ Returns the number of affected rows by the query.
|
|||||||
if (affectedRows)
|
if (affectedRows)
|
||||||
console.log(affectedRows)
|
console.log(affectedRows)
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user