Firstly, I know that there are already posts on here with the similar titles, I have looked at the answers to those questions but still can't figure out a solution from those answers. (My problem is slightly different to the rest).
I need to be able to update the value of a field for a specific record in my sqlite database. One of the posts I have used to help me with this problem is this.
I have used the same formatting in my code here:
updateCustomerTable = c.execute("UPDATE customerTable SET {} = ? WHERE customerID = ?").format(age), (newAge.get(),) , (customerID.get(),)
but I am getting an error message:
sqlite3.OperationalError: unrecognized token: "{"
Why is the curly bracket not allowed when the developer has used it in the answer for the other post?