mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
12 lines
430 B
Markdown
12 lines
430 B
Markdown
# Placeholders
|
|
|
|
This allows queries to be properly prepared and escaped; the following lines are equivalent.
|
|
|
|
```
|
|
"SELECT group FROM users WHERE identifier = ?", {identifier}
|
|
"SELECT group FROM users WHERE identifier = :identifier", {identifier = identifier}
|
|
"SELECT group FROM users WHERE identifier = @identifier", {['@identifier'] = identifier}
|
|
```
|
|
|
|
Named placeholders are deprecated and should be avoided as much as possible.
|