diff options
| author | 2022-11-25 13:14:51 +0100 | |
|---|---|---|
| committer | 2022-11-25 13:14:51 +0100 | |
| commit | af9612f264a544912b07fc50abb351990b2b351d (patch) | |
| tree | 165aa3f120e98865492fecb6146a9201ac6936d6 | |
| parent | Edited several tags (#2322) (diff) | |
Link directly to the sqlite3 placeholder howto
| -rw-r--r-- | bot/resources/tags/sql-fstring.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/resources/tags/sql-fstring.md b/bot/resources/tags/sql-fstring.md index 538a0aa87..fa28b6e3b 100644 --- a/bot/resources/tags/sql-fstring.md +++ b/bot/resources/tags/sql-fstring.md @@ -12,5 +12,5 @@ db.execute(query, params) Note: Different database libraries support different placeholder styles, e.g. `%s` and `$1`. Consult your library's documentation for details. **See Also** -• [Extended Example with SQLite](https://docs.python.org/3/library/sqlite3.html) (search for "Instead, use the DB-API's parameter substitution") +• [Python sqlite3 docs](https://docs.python.org/3/library/sqlite3.html#how-to-use-placeholders-to-bind-values-in-sql-queries) - How to use placeholders to bind values in SQL queries • [PEP-249](https://peps.python.org/pep-0249/) - A specification of how database libraries in Python should work |