sqlite3 OperationalError:没有这样的列(python)

时间:2017-12-10 16:34:32

标签: python sqlite operationalerror

这是我的代码

cursor.execute("UPDATE Blockchain_address SET money_of_address = ? WHERE address = temp_2", (temp_amount,))

它返回错误

sqlite3.OperationalError: no such column: temp_2

确实没有列temp_2但temp_2是一个变量。我想在我的数据库中查找money_of_address列的值为temp_2的位置。我该怎么办?

0 个答案:

没有答案