I want to update a text value in my Database using a variable to determine the value that should be inserted. I tried many different things.
cursor.execute ("update Athens_Label_Table set " + category + " =" + self.create_entry.get())
cursor.execute ("update Athens_Label_Table set " + category + " = s% ", (self.create_entry.get())
Those two always make the program crash or tell me that there is a syntax mistake. I want the value in the "category" column to be replaced by self.create_entry.get().
Does anyone have an idea how to solve this problem. Thank you very much!