replaceinto或者insertinto...onduplicatekeyupdate 可以批量更新 但是replace实际是先delete再insert,自动增长ID会变 所以建议用insertinto...onduplicatekeyupdate 无 INSERT INTO tt(id,age) VALUES (48,1),(50,2),(69,2) ON DUPLICATE KEY UPDATE age=VA
replace into 或者insert into ...on duplicate key updateINSERT INTO tt(id,age) VALUES (48,1),(50,2),(69,2) ON DUPLICATE KEY UPDATE age=VALUES(age);