我在一个小脚本中使用了python mysql连接器。我面临的问题是:在执行返回0行的select语句时,我无法关闭游标。关闭光标时,会触发"mysql.connector.errors.InternalError: Unread result found“。但是,调用fetchall()会导致"mysql.connector.errors.InterfaceError: No result set to fetch from“。错误。
我有一个python程序,它有一个带有单个元素的numpy数组,比如a='this is the element‘,我需要将这个值插入我的数据库(MySQL)。我使用了execute(),但它显示了一个属性错误import pandas as pdmysql_cn=mysql.connector.connect3388',
database='p