I need to dynamically change tables and variables from time to time, so I wrote a python method like this:
selectQ =\"\"\"SELECT * FROM %s WHERE %s = %s
You'll have to use string substitution to add the table and column names, the driver will only handle parameters.
Ed: NM, Daniel answered faster and more completely