Answer the question
In order to leave comments, you need to log in
How to add data to DB with certain conditions?
I am using Aiogram. I need to enter data into the database by username.
I thought to do it via INSERT:
cur.execute('''INSERT INTO users(user_item, user_price) VAlUES (?, ?) WHERE user_name = value''',(user,))
sqlite3.OperationalError: near "WHERE": syntax error
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