Dictionary inserts into MySQL (each key in its own field)

Derick van Niekerk derickvn at gmail.com
Fri Jan 27 03:03:30 EST 2006


I have found many posts that deal with writing a dictionary to MySQL in
a blob field - which I can't imagine why anybody would want to do it.

I want to write each element of a dictionary onto a db table. The keys
would match the fieldnames. Is there something that would make this job
easier? i.e. how do I write an entire dictionary into a db table as a
row? I have an idea that it is something very simple - possibly even
one line of code...

-d-




More information about the Python-list mailing list