Python sqlite error Python sqlite error sqlite sqlite

Python sqlite error


The parameter marker ? must not be quoted, because in SQL, everything in quotes is a string.

The correct form is:

conn.execute('''INSERT INTO {} (quote) VALUES (?)'''.format(table_names[i]), (quote,))