Can I use parameters for the table name in sqlite3?

Ooookay, should have looked more thoroughly on SO.

Answers:
SQLite Parameters – Not allowing tablename as parameter
Variable table name in sqlite

They are meant for Python, but I guess the same applies for C++.

tl;dr:

You can’t pass the table name as a parameter.
If anyone have a link in the SQLite documentation where I have the confirmation of this, I’ll gladly accept the answer.

Leave a Comment