Skip to content
Advertisement

how to use multi variables in a single SQL python code

I have used this code to use two variables in a single SQL code in Python :

JavaScript

but I’ve got this error :

MySQLInterfaceError: Python type tuple cannot be converted

though I’ve converted my strings into a tuple like this:

JavaScript

how can I use these two variables in my cursor.execute code?

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement