Fix Python – How to use variables in SQL statement in Python?
I have the following Python code:
cursor.execute(“INSERT INTO table VALUES var1, var2, var3,”)
where var1 is an integer, var2 and var3 are strings.
How can I write the variable names without Python including them as part of the query text?
….