Jul-20-2018, 07:22 AM
Hello,
I want to know how to get 'clean' results on the MySQL querry using python.
Here is the program:
Do you have any idea how i could manage to do so?
Thank you
I want to know how to get 'clean' results on the MySQL querry using python.
Here is the program:
cur.execute('select nom_region from data where dept_epci like %s and nom_commune like %s ', [test, x[5]]) region = cur.fetchall() print (region)And here is the result
(('Occitanie',),)I just want that program to print (or return) only Occitanie.
Do you have any idea how i could manage to do so?
Thank you