[Zope-DB] python scripts . again
Thu, 6 Mar 2003 20:04:03 +0100
DRA> Still being Mr. Newbie here. While iterating through the results of an
DRA> SQL query. How do I get the column names? I'm running a query that can
DRA> return different columns depending on how it's run, and I need the
DRA> script to pull the column names:
DRA> So what exactly is results? Is it a list of dictionaries? If that's the
DRA> case then this is just a python question. How do I get a list of the
DRA> keys in each dictionary?
results is a Results classs instance..
you can read a bit more about it here :