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:
See Question&Answers more detail:oscon.Execute('''UPDATE tblPlayers SET p_Level = ? WHERE p_Username= ? ''', (PlayerLevel,PlayerUsername)) TypeError: Execute() takes exactly 2 arguments (3 given)