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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -