What are different ways to reference a Python variable into MySQL statement?
I know you can reference like this:
var = "String"
cursor.execute("select * from table where column1 = %s") % (var)
I saw somebody mention to use ?. What are other ways to do it?