Why does this not work for choosing the table?
# Python DB-API
cur.execute("SELECT * FROM %s", (table,))
- Placeholders bind values, not names
SELECT *can never take a parameter- Tuples can't hold string values
%sonly works for integers
Bound parameters are data, never identifiers; validate table names against an allowlist instead.
Play SQL & Databases ▸