INSERT INTO `books ` (`name`,`count`,`num`) VALUES (‘windows‘,‘1‘,‘2‘),(‘‘,‘linux‘,‘1‘,‘3‘) ON DUPLICATE KEY UPDATE `count` = `count` + VALUES(`COUNT`), `num`=`num`+VALUES(`num`);
时间: 2024-10-13 07:17:18
INSERT INTO `books ` (`name`,`count`,`num`) VALUES (‘windows‘,‘1‘,‘2‘),(‘‘,‘linux‘,‘1‘,‘3‘) ON DUPLICATE KEY UPDATE `count` = `count` + VALUES(`COUNT`), `num`=`num`+VALUES(`num`);