The Python DB API returns a list of tuples when fetchall is called on a executed cursor. If you are working with the _mysql module, fetch_row has a parameter howthat allows you to get a dictionary instead of a tuple. How can I achieve this with the cursor?
source
share