使用 Python 读取 Microsoft Access 数据库需要什么? [英] What do I need to read Microsoft Access databases using Python?

查看:40
本文介绍了使用 Python 读取 Microsoft Access 数据库需要什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Python 中访问 Microsoft Access 数据库?使用 SQL?

How can I access Microsoft Access databases in Python? With SQL?

我更喜欢适用于 Linux 的解决方案,但我也可以适应 Windows.

I'd prefere a solution that works with Linux, but I could also settle for Windows.

我只需要读取权限.

推荐答案

我用过 PYODBC 成功连接到 MS Access 数据库 - 在 Windows 上.安装很简单,使用起来也很简单,你只需要设置正确的连接字符串(列表中给出了 MS Access 的连接字符串),然后你就可以使用示例了.

I've used PYODBC to connect succesfully to an MS Access db - on Windows though. Install was easy, usage is fairly simple, you just need to set the right connection string (the one for MS Access is given in the list) and of you go with the examples.

这篇关于使用 Python 读取 Microsoft Access 数据库需要什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆