Answer the question
In order to leave comments, you need to log in
Why does sqlite3 + python error occur?
self.cur.execute(self.cur.execute('UPDATE users SET firstname='+ message.text + ' WHERE id=' + str(message.chat.id)))
sqlite3.OperationalError: near "sdfG": syntax error
def set_name(self, message):
self.cur.execute(self.cur.execute('UPDATE users SET firstname='+ message.text + ' WHERE id=' + str(message.chat.id)))
self.con.commit()
return
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