Ok so I\'m not that experienced in Python.
I have the following Python code:
cursor.execute(\"INSERT INTO table VALUES var1, var2, var3,\")
<
cursor.execute("INSERT INTO table VALUES (%s, %s, %s)", (var1, var2, var3))
Note that the parameters are passed as a tuple.
The database API does proper escaping and quoting of variables. Be careful not to use the string formatting operator (%
), because