As for sqlite3 to make the right delete rows?

my code is the following:
#array_set[0] - gives the desired ID (taken from tk.treeview) - works like a clock
 self.c.execute("""DELETE FROM table WHERE id = ?; """,array_set[0])
self.tree.delete(self.tree.selection())
self.conn.commit()
 self.conn.close()

The problem is that deleted only if if ID < 10. tobish if the ID for example will be double-digit, it generates a trace. error :

self.c.execute("""DELETE FROM stabilometr WHERE id = ?; """,array_set[0])
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 2 supplied.

what is a joint? how to fix ?
April 19th 20 at 12:19
1 answer
April 19th 20 at 12:21
Solution
Look what the output array_set[0], writes that there are two parameters instead of one which is used in the command.
it outputs correctly
5e9849736da18429384286.jpeg - winona_Goldner11 commented on April 19th 20 at 12:24
@winona_Goldner11, try to put array_set[0] in the list below happened:
self.c.execute("""DELETE FROM stabilometr WHERE id = ?; """,[array_set[0]]) - reva4 commented on April 19th 20 at 12:27
@reva4, Thank you very much, I was able to do this in the format
['25']
- winona_Goldner11 commented on April 19th 20 at 12:30

Find more questions by tags TkinterSQLitePython