FAQ
import odbc
conn = odbc.odbc('mydsn')
c = conn.cursor()
c.execute('SELECT TOP 10 field1, field2 FROM TABLE')
rows = c.fetchall()
c.close()
conn.close()

I am using MSSQL2000. My problem is:
Instead of row[0], rows[1]
I would like to use row['field1], row['field']
Is it possible for odbc module?
I cannot find any comprehensive documentation :(

--
JZ ICQ:6712522

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 8 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedOct 28, '03 at 3:26p
activeOct 29, '03 at 12:32a
posts8
users4
websitepython.org

People

Translate

site design / logo © 2022 Grokbase