I'm trying to use the following query:
INSERT INTO table1(col1, col2, col3)
SELECT ss.col1, ss.col2, ss.col3
FROM table2 ss
ON DUPLICATE KEY UPDATE
col1=ss.col1,
col2=ss.col2,
col3=ss.col3;
Unfortunately all I get is "SQL query not properly ended" message. Where in this example the syntax is wrong?
The error message pops up right when I insert
ON DUPLICATE KEY UPDATE
col1=ss.col1,
col2=ss.col2,
col3=ss.col3;