Answer the question
In order to leave comments, you need to log in
How to display value in sqlite3?
how can i find all rows in db where user_id = msg.chat.id.
Code below
user_id = msg.chat.id.
#тут коннект к бд
cur.execute("SELECT balance FROM orders WHERE user_id={user_id};")#пробовал так,дает ошибку sqlite3.OperationalError: unrecognized token: "{
Answer the question
In order to leave comments, you need to log in
Once again I will give you a link to the documentation , where there is even an example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question