Created
April 22, 2019 08:48
-
-
Save yijia2413/461874aa64d51ae1b35daf927719339c to your computer and use it in GitHub Desktop.
MySQL insert duplicate key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
insert into proc_runtime (vm, procname) values ('100', 'wechat.exe') on duplicate key update vm = values(vm), procname = values(procname), day_runtime =day_runtime + values(day_runtime) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment