Posts by brenoscheffer • 26 points
1 post
-
1
votes1
answer719
viewsA: Create a dictionary in Python by receiving values from the database
You can try using the.fetchall() cursor, explained here. It returns a list of tuples with the result of your SELECT. From this it is easy to turn into dictionary. You can still pass a parameter…