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
Post a Comment