Answer the question
In order to leave comments, you need to log in
Why does this line of code, instead of changing the value in the table, just add a new one?
c.execute("INSERT INTO bustbuy VALUES ({0}, 'Да', 'Нет', 'Нет','none')".format(message.chat.id))
Answer the question
In order to leave comments, you need to log in
Because the INSERT command adds a new record.
If you want to change an existing one - use UPDATE
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question