Im trying to save bunch of tuples in DB
cursor = cnx.cursor() query = \"\"\"INSERT INTO `TableA` (`clientid`,
Here is a minimal example that I got working.
query = "INSERT INTO `pet`(`name`,`owner`) values(%s,%s)" listTosave = [('some','shsjhs'),('sosos','shshsh')] cursor.executemany(query, listTosave)
Make sure that you have a list of tuples, and that you use %s in query string
%s