Create execute.md

This commit is contained in:
Linden authored and GitHub committed 2021-08-18 14:03:07 +10:00
1 parent 89b710d8ee
commit 6109adabe4
1 file changed
+14
+14
View File
@@ -0,0 +1,14 @@
# 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')
```