Answer the question
In order to leave comments, you need to log in
What is wrong with the replacement?
TypeError: can only concatenate str (not "int") to str
import sqlite3
a = 1
con = sqlite3.connect('telebot.sqlite')
cur = con.cursor()
jo = 'Юля'
mas = []
mas.append(jo)
g = 1
cur.execute("UPDATE telebot228 SET name= '" + jo + "' WHERE id =" + g)
con.commit()
con.close()
Answer the question
In order to leave comments, you need to log in
cur.execute("UPDATE telebot228 SET name=? WHERE id =?",(jo,g))
sqlite module - Working with the databasetelebot 228And Julia is your client, or a pawnbroker?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question