Answer the question
In order to leave comments, you need to log in
How to add quotes to SQL in Python if curly braces are used?
Value abc =1503915010_3
Cur.execute
(f"UPDATE telephone SET ABCOUNT = {abc}, delete_abcount = 0 WHERE TEL = {tel} AND ABCOUNT IS NULL")
produces
an sqlite3.OperationalError: unrecognized token: "1503915010_3"
I I understand that you need to put quotes, but how to write it correctly in case of using curly braces?
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