sqlite3 OperationalError: no such column (python)

840 Views Asked by At

this is my code

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

it returns the error

sqlite3.OperationalError: no such column: temp_2

indeed there is no column temp_2 but temp_2 is a variable. and I would like to look in my DB for where the column money_of_address has the value temp_2. What should I do?

0

There are 0 best solutions below