INSERT INTO table (a,b,c) VALUES (1,2,3),(4,5,6)
ON DUPLICATE KEY UPDATE c=VALUES(a)+VALUES(b);
I've known about the on duplicate key but I would typically have to specify the values again. Here you can say values(
Very useful!
Topics for professional software engineers
No comments:
Post a Comment