I'm a new coder around here and I've been struggling to find out why there is a syntax error in my code but I cannot understand why.
c.execute("UPDATE piesemagazin SET (?,?,?,?,?) WHERE IdProdus=?",(id, nume, tip, numar, pret,id))
I have tried to replace it with INSERT
OR REPLACE
, also tried the .format
type but none of these seem to work.