Answer the question
In order to leave comments, you need to log in
How to do proper deletion of rows in sqlite3?
my code is the following:
#array_set[0] - выдаёт нужный ID (берёт из tk.treeview) - работает как часы
self.c.execute("""DELETE FROM table WHERE id = ?; """,array_set[0])
self.tree.delete(self.tree.selection())
self.conn.commit()
self.conn.close()
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.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question