cnxn = pyodbc.connect(driver='{SQL Server}', host=server, database=db1,
                      trusted_connection=tcon, user=uname, password=pword)
cursor = cnxn.cursor()
cursor.execute("select * from appaudit_q32013")
rows = cursor.fetchall()
for row in rows:
    print row

 

IMPORT PYODBC

 

相关文章:

  • 2021-12-13
  • 2021-08-21
  • 2021-09-30
  • 2021-05-17
  • 2022-01-29
  • 2022-01-09
  • 2022-02-13
  • 2022-12-23
猜你喜欢
  • 2021-08-05
  • 2021-12-12
  • 2022-12-23
  • 2021-12-20
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案