Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: pandas mappin ID to value in different row 
Python :: Errors that you will get in the Time class in Python DateTime 
Python :: kivy file chooser path selector 
Python :: does xgboost accept pandas 
Python :: lists example in python 
Python :: remove special characters and numbers from string python 
Python :: Fill area under line plot 
Python :: fetchall in python sqilite3 
Python :: how to make an app that sends email in python 
Python :: Path 
Python :: cv2 jupyter notebook matplotlib inverted colors fix 
Python :: python get combobox value 
Python :: rest api save file python 
Python :: generating cross tables after clustering 
Python :: for t in range(t) python 
Python :: fizzbuzz algorithm 
Python :: python package for facial emotion recognition 
Python :: python typing namedtuple 
Python :: delta lake with spark 
Python :: Matplotlib scatter plot custom point annotation 
Python :: Open AI Call 
Python :: scale just one column pandas 
Python :: how to return value in new record to odoo 
Python :: how to resize image with pillow in django 
Python :: spacy vietnamese 
Python :: a problem of predicting whether a student succeed or not based of his GPA and GRE. for logistic regression 
Python :: list loop get previous element 
Python :: python tqdm seet width 
Python :: sidetable github 
Python :: Return a new RDD containing the distinct elements in this RDD. 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =