1INSERT INTO t1 (a,b,c) VALUES (1,2,3)
2 ON DUPLICATE KEY UPDATE c=3;
3INSERT INTO t1 (a,b,c) VALUES (4,5,6)
4 ON DUPLICATE KEY UPDATE c=9;
1INSERT INTO `tableName` (`a`,`b`,`c`) VALUES (1,2,3)
2ON DUPLICATE KEY UPDATE `a`=VALUES(`a`), `b`=VALUES(`b`), `c`=VALUES(`c`);
3