安装pyodbc

pip install pyodbc -i https://pypi.tuna.tsinghua.edu.cn/simple

创建连接

engine=create_engine("mssql+pyodbc://sa:ddh123@pawndb")
conn = engine.connect()

查询

from sqlalchemy.sql import select
s = select([users])
result = conn.execute(s)

参考:

https://blog.csdn.net/qq_43355223/article/details/82997175

相关文章:

  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2021-06-20
  • 2021-07-06
猜你喜欢
  • 2018-06-20
  • 2022-02-07
  • 2021-08-17
  • 2022-12-23
  • 2021-07-06
相关资源
相似解决方案