Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2022 10:48 PM
“how to open mdb file in python” Code Answer
- import pyodbc.
-
- conn = pyodbc. connect(r'Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=path where you stored the Access file\file name.accdb;')
- cursor = conn. cursor()
- cursor. execute('select * from table name')
- for row in cursor. fetchall():
- print (row)