0
我想通過PHP使用「ON DUPLICATE KEY」查詢。這是它看起來像MySQL ON重複密鑰語法錯誤
INSERT INTO `application`.`invites` (`from`, `to`) VALUES ('123', '321') ON DUPLICATE KEY UPDATE `from`=VALUES(from), `to`=VALUES(to)
我做錯了什麼?
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from), `to`=VALUES(to)' at line 1