python 3.x - TypeError: execute() got an unexpected keyword argument 'multi' -


i trying delete record in database using mysqldb module. in https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-execute.html, found multi=true executing multiple quires in execution generates error. can me knowing missing?

query = "delete service_machine id=(select id machines id="+id+");" \         "delete machine_usage id=(select id machines id="+id+");" \                     "delete machines id="+id+");" print(query) self.cursor.execute(query, multi=true) 


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -