mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
15 lines
354 B
Markdown
15 lines
354 B
Markdown
# Execute
|
|
Execute a query and returns the number of affected rows.
|
|
|
|
### Usage
|
|
```lua
|
|
exports.oxmysql:execute(query, {}, function(affectedRows)
|
|
print('Updated '..affectedRows..' rows')
|
|
end)
|
|
print('I will be printed before query result')
|
|
```
|
|
```lua
|
|
local affectedRows = exports.oxmysql:executeSync(query, {})
|
|
print('Updated '..affectedRows..' rows')
|
|
```
|