Skip to the content.

Home / cs-notes / Architecture / Components / Database / MySQL / questions / 原子操作 - 实现 computeIfPresent 语义

INSERT INTO test(k, v) VALUES ('a', 1) ON DUPLICATE KEY UPDATE v=v+2; 
REPLACE INTO test(k, v) VALUES ('d', 4);