我试图将一个python变量插入到python脚本中的MySQL表中,但它不起作用。ProgrammingError: Failed processing pyformat-parameters; 'MySQLConverter' object has no attribute '_float64_to_mysql我怀疑python传递的是实际的变量名,而不是它们持有的值。我该如何解决这个问题?
我在一个小脚本中使用了pythonmysql连接器。我面临的问题是:在执行返回0行的select语句时,我无法关闭游标。关闭光标时,会触发"mysql.connector.errors.InternalError: Unread result found“。但是,调用fetchall()会导致"mysql.connector.errors.InterfaceError: No result set to fetch from“。错误。所以基本上,我