mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
1.2 KiB
1.2 KiB
keywords, title
| keywords | title | ||
|---|---|---|---|
|
Scalar |
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Returns the first column for a single row.
Promise
local firstName = MySQL.scalar.await('SELECT `firstname` FROM `users` WHERE `identifier` = ? LIMIT 1', {
identifier
})
print(firstName)
const firstName = await MySQL.scalar('SELECT `firstname` FROM `users` WHERE `identifier` = ? LIMIT 1', [
identifier
])
console.log(firstName)
Aliases
MySQL.Sync.fetchScalarexports.ghmattimysql.scalarexports.oxmysql.scalar_async
Callback
MySQL.scalar('SELECT `firstname` FROM `users` WHERE `identifier` = ? LIMIT 1', {
identifier
}, function(firstName)
print(firstName)
end)
MySQL.scalar('SELECT `firstname` FROM `users` WHERE `identifier` = ? LIMIT 1', [
identifier
], (firstName) => {
console.log(firstName)
})
Aliases
MySQL.Async.fetchScalarexports.ghmattimysql.scalarexports.oxmysql.scalar