Getting unexpected result when trying to update a cell
"no such column" error when trying to update Question: I am trying to replace a string with an id: import sqlite3 TABLES = [‘table1’, ‘table2’, …] PAR_TYPES_STRINGS = [‘foo’, ‘bar’, …] PAR_TYPES_ID = [1, 2, …] def upateTable(table, parTypeId, parTypeString): return f"UPDATE {table} SET par_type = {parTypeId} WHERE par_type = {parTypeString};" conn = sqlite3.connect(‘existing_db.db’) cursor …