Getting column names from a cursor using ODBC module?

dananrg at yahoo.com dananrg at yahoo.com
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.

Dana




More information about the Python-list mailing list