Funzione
Database:Select
Selects a query synchronously
Non ancora tradotto
Sintassi
my_database:Select(query, parameters... = nil)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
query
|
string | — | Query to execute |
parameters...
facoltativo
|
any | nil |
Sequence of parameters to escape into the Query |
Valore restituito
- table[] rows fetched
- string error (if any)
Esempi
local rows = my_database:Select("SELECT * FROM MyTable WHERE name = :0 AND title = :1", "Val", "AnotherVal")