DuckDB 2 · From Python
Pass parameters safely
Use placeholders instead of building SQL from strings.
con.execute("SELECT * FROM events WHERE id = ?", [7]).fetchall()
Official DuckDB 2 documentation
DuckDB 2 · From Python
Use placeholders instead of building SQL from strings.
con.execute("SELECT * FROM events WHERE id = ?", [7]).fetchall()
Official DuckDB 2 documentation
Was this page helpful?