Answers for "mysql on duplicate key ignore"

SQL
2

mysql on duplicate key update

INSERT INTO t1 (a,b,c) VALUES (1,2,3)
  ON DUPLICATE KEY UPDATE c=3;
INSERT INTO t1 (a,b,c) VALUES (4,5,6)
  ON DUPLICATE KEY UPDATE c=9;
Posted by: Guest on October-28-2020
0

mysql on duplicate key ignore

INSERT INTO table_tags (tag) VALUES ('tag_a'),('tab_b'),('tag_c') ON DUPLICATE KEY UPDATE tag=tag;
Posted by: Guest on October-29-2020
0

mysql on duplicate key update

UPDATE t1 SET c=c+1 WHERE a=1 OR b=2 LIMIT 1;
Posted by: Guest on October-28-2020

Code answers related to "mysql on duplicate key ignore"

Code answers related to "SQL"

Browse Popular Code Answers by Language