I am trying to insert into the SQLite DataBase values with this code:
con.Execute('''UPDATE tblPlayers SET p_Level = ? WHERE p_Username= ? ''', (PlayerLevel,PlayerUsername))
this is the Execute function:
def Execute(self,SQL):
self.__connection.execute(SQL)
self.__connection.comit()
and i am getting this error:
con.Execute('''UPDATE tblPlayers SET p_Level = ? WHERE p_Username= ? ''', (PlayerLevel,PlayerUsername)) TypeError: Execute() takes exactly 2 arguments (3 given)
Aucun commentaire:
Enregistrer un commentaire