ON DUPLICATE KEY :
INSERT INTO table (a,b,c) VALUES (1,2,3) ON DUPLICATE KEY UPDATE c=c+3;
INSERT INTO test2(file,owner,flag) VALUES (‘file2‘,‘coco.yue‘,1) ON DUPLICATE KEY UPDATE flag=3;
时间: 2024-10-30 07:44:36
ON DUPLICATE KEY :
INSERT INTO table (a,b,c) VALUES (1,2,3) ON DUPLICATE KEY UPDATE c=c+3;
INSERT INTO test2(file,owner,flag) VALUES (‘file2‘,‘coco.yue‘,1) ON DUPLICATE KEY UPDATE flag=3;