I'm starting to program a Python application that works with databases. Reading about prepared statements, I found how I'm supposed to write them:
...
strSQL = "select * from myTable where aField = $s" % (aValue)
cursor.execute(strSQL)
...
My question is: Isn't this vulnerable to SQL injection? If so, how can I prevent it?
Thank you