Answers for "mysql import creates duplicate key for unique key"

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

duplicate value unique constraint mysql error

Delete all record from table
Posted by: Guest on July-28-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language