Getting column names from a cursor using ODBC module?

dananrg at dananrg at
Mon Jun 23 00:11:55 CEST 2008

Thanks Chris and John. Chris, this worked perfectly with the ODBC
module that ships with Python Win32:

> column_names = [d[0] for d in cursor.description]

John, I've never heard of pyodbc but I'll have to look into it.

Thanks again.


More information about the Python-list mailing list