I have this code with 2 entry boxes in tkinter which are passed through a database. I am trying to create and update query which updates the record in the database however I do not know how to create this from entry boxes. I have already researched this error. Exercise and Weight are the two entry boxes with MemberID being used to identify which record to update. This is the code
cursor.execute('''
UPDATE Exercises
SET (Exercise =?, Weight = ?)
WHERE MemberID=? ;
''')
The error is sqlite3.OperationalError: near "(": syntax error