我有一个pandas dataframe,它是用不同的列名动态创建的。'append', index = False, dtype = #Data type for all columns#)column_errors.to_sql('load_errors',push_conn, if_exists = 'append', index = Fa
我正在尝试编写更新查询,但无法管理字符串。我的关系没问题。我的查询如下:cursor.execute('UPDATE users SET message = '+str+' WHERE UserId=13')
这给了我错误:未定义的列名我想将消息列更新为hello,但它将其作为列名。在sql中,当我以UPDATE users SET message = 'hello'