mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 14:38:50 +00:00
15 lines
295 B
Markdown
15 lines
295 B
Markdown
# 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)
|
|
```
|