SQLite Forum

Placeholder for table name when inserting data?
Login
> you build the query string in your calling code and prepare each version in turn" - I'm beginner in Python and I have never run SQLite commands alone

The rest isn't a SQLite question at all, but a Python question. There are certainly better places to get such answers. However, briefly:

```Python
for...table_name...
   qstr = "INSERT OR IGNORE INTO {0} VALUES (?,?,?)".format(table_name)
   c.execute(qstr, arg1, arg2, arg3)
```

**EDIT**: I believe I fixed a syntax error in your SQL with respect to the placement of `INTO`.