Create single.md

This commit is contained in:
Linden authored and GitHub committed 2021-08-18 14:12:38 +10:00
1 parent aae887869b
commit 6f46b2e6f8
1 file changed
+14
+14
View File
@@ -0,0 +1,14 @@
# Single
Execute a query and return the results of the first row.
### Usage
```lua
exports.oxmysql:single(query, {}, function(result)
print(result['column'])
end)
print('I will be printed before query result')
```
```lua
local result = exports.oxmysql:singleSync(query, {})
print(result['column'])
```