Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to use query in ms access with python

import pyodbc

conn = pyodbc.connect(r'Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=path where you stored the Access filefile name.accdb;')
cursor = conn.cursor()
cursor.execute('select * from table_name')
   
for row in cursor.fetchall():
    print (row)
Source by datatofish.com #
 
PREVIOUS NEXT
Tagged: #query #ms #access #python
ADD COMMENT
Topic
Name
4+7 =