试图将Python连接到PYODBC访问数据库,不确定要使用什么驱动程序

发布于 2025-02-10 08:57:10 字数 443 浏览 0 评论 0原文

我正在尝试使用PYODBC连接到访问数据库,但我不确定要使用哪个驱动程序。 代码,

pyodbc.drivers()

运行我得到的

['SQL Server', 'PostgreSQL ANSI(x64)', 'PostgreSQL Unicode(x64)']

我想我想拥有类似的东西

['Microsoft Access Driver (*.mdb, *.accdb)']

,但是即使我只是重新安装了Microsoft的驱动程序,也没有列出。 lidess.aspx?id = 13255“ rel =“ nofollow noreferrer”>在这里。

因此,我可以使用现有驱动程序之一(尝试时似乎并非如此),还是可以让PyodBC找到正确的驱动程序?

I am trying to connect to an access database using pyodbc, but I am unsure which driver to use. Running the code

pyodbc.drivers()

I get

['SQL Server', 'PostgreSQL ANSI(x64)', 'PostgreSQL Unicode(x64)']

I figure I would want to have something like

['Microsoft Access Driver (*.mdb, *.accdb)']

But it is not listed even though I just reinstalled the driver from microsoft found here.

So can I use one of the existing drivers (it does not appear to be the case when I try) or can I somehow let pyodbc find the correct driver ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文