Placeholders, and Why SQL Is Never Built from Strings
SQL built with an f-string lets whatever a person types become part of the query, so a name such as x' OR '1'='1 turns one search into "every row", which is SQL injection, and ? or :name placeholders stop it by sending each value separately from the SQL.
Updated

- Category
- FastAPI
- Level
- Journeyman
- Tags
- database, Parameterized Query, sql, SQL Injection, sqlite