Feb-20-2020, 03:22 PM
Hello,
I'm using pymysql to get all the contents of a table with two columns - user_id and user_name (user_id is the primary key).
is there a way to return a single dictionary with user_id's as keys and user_names as values?
I'm using pymysql to get all the contents of a table with two columns - user_id and user_name (user_id is the primary key).
is there a way to return a single dictionary with user_id's as keys and user_names as values?