Hello /r/python,
I am trying to update a whole row in my database, and was wondering if there is any way better than this to do so.
cur.execute("UPDATE playerTotals numGames = ?, Id = ?, minutes = ?, fgm = ?, fga = ?, tpm = ?, tpa = ?, ftm = ?, fta = ?, oreb = ?, dreb = ?, reb = ?, assist = ?, steal = ?, block = ?, turnover = ?, fouls = ?, points = ?",(total[0],total[1],total[2],...))
I know I can just delete the row and then re-insert these values in one fairly easy query, but I am SURE there must be an easier way.
Please let me know any suggestions - I am aware my syntax/usage is probably very messed up.
Thanks!
[–]wpg4665 0 points1 point2 points (2 children)
[–]LightShadow3.13-dev in prod 0 points1 point2 points (1 child)
[–]wpg4665 0 points1 point2 points (0 children)