1

I am getting this error --

Incorrect number of bindings supplied The current statement uses 4, and there are 3 supplied.

Here is the code --

def update_entry(self):
     self.cur.execute('UPDATE SINGLE SET IN=?,OUT=?,QUALITY=? WHERE ID=?',
 (self.IN_entry.get(),self.OUT_entry.get(),self.QC_entry.get()))
0

1 Answer 1

0

You have 4 placeholders in your query and yet you're supplying only 3 items in the tuple passed to execute. You should supply a value for the placeholder for ID as the 4th item in the tuple.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.