0
Esteban posted
Python - mysql.connector.errors.InternalError: Unread result found
i am making code in MySQ by Python where finding date wise record L if exists or not .
for ind in df.index:
sel="select * from data where `date`='{0}'".format(df['date'][ind])
cursor2.execute(sel)
data=cursor2.fetchone()
if len(data)==0 :
print("list")
else :
print("Already exists")
give me following error :
Traceback (most recent call last):
File "mysqllist.py", line 22, in <module>
cursor2.execute(sel)
self._connection.handle_unread_result()
raise errors.InternalError("Unread result found")
mysql.connector.errors.InternalError: Unread result found