I'm looking for help with this little code :
INSERT INTO "WU_MatchingUsers"("IDWU_User1", "IDWU_User2", "MatchingScore") VALUES(i, j, random);
ON CONFLICT ("IDWU_User1", "IDWU_User2")
DO
UPDATE SET "MatchingScore" = EXCLUDED."MatchingScore";
How can I make if there is already an existing row of the id 1 + id 2 to just only update the matching score ? This not seems to work since I have this error :
ERREUR: erreur de syntaxe sur ou près de « ON »
LIGNE 16 : ON CONFLICT ("IDWU_User1", "IDWU_User2"...
Kind regards !