import os
import pyodbc
conn = pyodbc.connect(r’Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=’+os.path.join(os.path.abspath(‘.’), ‘veritabani.accdb’) +’;’)
cursor = conn.cursor()

# Sorgula
sql=”select * from tablo”
cursor.execute(sql)

i = 0
for row in cursor.fetchall():
i=i+1
print(“Kayıt “ + i.__str__() + “ : “)
row[0] + “”)
print(“#” * 50)

conn.commit()

BaranSEREN

Bilgisayar Programcısı & İnşaat Mühendisi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store