Answer the question
In order to leave comments, you need to log in
How to write information to sql using the WHERE method?
cur.execute(f"""INSERT INTO HGF (id_, Алгебра_1) VAlUES(?, ?) WHERE id_ = 0""", (1, A),)
Answer the question
In order to leave comments, you need to log in
INSERT does not require WHERE, as it creates a new record in the table.
If you need to update an existing entry, use UPDATE.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question