Answer the question
In order to leave comments, you need to log in
Python and SQLite3. What is the problem?
I am writing a bot for Telegram, I am trying to add values to the database
sql = 'INSERT INTO '+str(message.chat.id)+'_db (value1, value2, value3) VALUES (?, ?, ?);'
cursor.execute(sql, (value1, value2, value3))
conn.commit()
Answer the question
In order to leave comments, you need to log in
Understood, it was necessary to quote the name of the table. I didn't see it in the examples.
The question is closed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question