📜  mysql on duplicate key update get value from values - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:58.391000             🧑  作者: Mango

代码示例2
INSERT INTO `tableName` (`a`,`b`,`c`) VALUES (1,2,3)
ON DUPLICATE KEY UPDATE `a`=VALUES(`a`), `b`=VALUES(`b`), `c`=VALUES(`c`);