我写了下面的代码:
def product_search_database (self):
data=""
data=self.ui.lineEdit_name_product_add.text()
self.connection=sqlite3.connect("data.db")
self.imlec=self.connection.cursor()
self.imlec.execute("SELECT * FROM datas WHERE isim="+str(data))
#row=result.fetchall()
for row in self.imlec.fetchall():
print(row)
我收到警告信息:
self.imlec.execute("SELECT * FROM datas WHERE isim="+str(data))
sqlite3.OperationalError: no such column:
我在哪里犯错?