Create scalar.md

This commit is contained in:
Linden authored and GitHub committed 2021-08-18 14:13:22 +10:00
1 parent 6f46b2e6f8
commit 5479a9168b
1 file changed
+14
+14
View File
@@ -0,0 +1,14 @@
# Scalar
Execute a query and return the result of the first row and column.
### Usage
```lua
exports.oxmysql:scalar(query, {}, function(result)
print(result)
end)
print('I will be printed before query result')
```
```lua
local result = exports.oxmysql:scalarSync(query, {})
print(result)
```