I have a dict object. I dumped data using this:
for alldata in data:
Each field has brackets [] and "None" for NULLS and date.datetime for date values.
How do I reset this dict table in MySQL? Thanks!
print data displays something like the following:
{'1': ['1', 'K', abc, 'xyz', None, None, None], '2': ['2', 'K', efg, 'xyz', None, None, None], '3': ['3', 'K', ijk, 'xyz', None, None, None]}
How to insert this data into MySQL?
python dictionary mysql
Thinkcode
source share