human
Python MySQL Parameterized Queries
assistant
Here is some code to mySQL execute query 'SELECT * FROM foo WHERE bar = %s AND baz = %s' with parameters `param1` and `param2`

c.execute('SELECT * FROM foo WHERE bar = %s AND baz = %s', (param1, param2))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.