getting database column names from query

Bob Kline bkline at rksystems.com
Wed Aug 16 15:44:32 EDT 2006


Jason Nordwick wrote:
> I'm using MySQLdb and can connect and issue queries that return result
> sets, but I how do I get the column names for those result sets?

[d[0] for d in k.description]

Cheers,
Bob



More information about the Python-list mailing list