I'm trying to execute the following sql query on postgres:
INSERT INTO Works_On (ESSN,PNo,Hours) VALUES ('199112111',3,3)
ON DUPLICATE KEY UPDATE Hours = 3;
But when I do I get an error which follows:
psql:test2.sql:2: ERROR: syntax error at or near "ON"
LINE 2: ON DUPLICATE KEY UPDATE Hours = 3;
^
I can't really find the error, help would be most appreciated!