import sqlite3
sqlite3.connect(“D:\KADIRSQL\Sermaye_Konrolu.db”)
Sermaye_Konrolu= “D:\KADIRSQL\Sermaye_Konrolu.db”
im= Sermaye_Konrolu.cursor()
im.execute(“SELECT * FROM HISSE_ANALIZ”)
im.fetchall()
“C:\Program Files\Python311\python.exe” D:\KADIRSQL\KADIRPYT\OGRENME_PROJEM.py
Traceback (most recent call last):
File “D:\KADIRSQL\KADIRPYT\OGRENME_PROJEM.py”, line 4, in
im= Sermaye_Konrolu.cursor()
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘str’ object has no attribute ‘cursor’
Process finished with exit code 1