Getting Table and Column names in PyOdbc
问题 I'd like to retrieve the fully referenced column name from a PyOdbc Cursor. For example, say I have 2 simple tables: Table_1(Id, < some other fields >) Table_2(Id, < some other fields >) and I want to retrieve the joined data select * from Table_1 t1, Table2 t2 where t1.Id = t2.Id using pyodbc, like this: query = 'select * from Table_1 t1, Table2 t2 where t1.Id = t2.Id' import pyodbc conn_string = '<removed>' connection = pyodbc.connect(conn_string) cursor = connection.cursor()cursor.execute