- import dbi, odbc
- conn = odbc.odbc('mydsn/login/password')
- c = conn.cursor()
- c.execute('select clientid, name, city from client')
- print c.fetchall()
- #该片段来自于http://www.codesnippet.cn/detail/100120131496.html
来源: http://www.codesnippet.cn/detail/100120131496.html