mysql - Getting columns name from my sql stored procedure result in python django -


i have stored procedure (sp) returns table result. have got sp results using code below.

cur = connection.cursor() cur.callproc('manifest_item_list', [start_time, end_time]) results = cur.fetchall() 

now want result in form of list of dictionary (with column names keys). can use map , lambda function job given have column names. there smart way make dictionary out of or @ least column names result.

currently list of tuples


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -