I want to use this query:
select x from y where z in ("a", "b", "c")
I have pymysql and mysql.connector for MySQL with Python.
This works with pymysql:
args = ["a", "b", "c"]
db = cur.execute('select x from y where z in %s',(tuple(args),))
But it doesn't work with mysql.connector. It gives me error like 'MySQLConverter' object has no attribute '_tuple_to_mysql'.
pymysql has a great solution, but I couldn't realize that on mysql.connector. Can you help me please?