1INSERT INTO table_name(c1)
2VALUES(c1)
3ON DUPLICATE KEY UPDATE c1 = VALUES(c1) + 1;
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
1INSERT INTO table_tags (tag) VALUES ('tag_a'),('tab_b'),('tag_c') ON DUPLICATE KEY UPDATE tag=tag;
2