Skip to content

Instantly share code, notes, and snippets.

@yijia2413
Created April 22, 2019 08:48
Show Gist options
  • Save yijia2413/461874aa64d51ae1b35daf927719339c to your computer and use it in GitHub Desktop.
Save yijia2413/461874aa64d51ae1b35daf927719339c to your computer and use it in GitHub Desktop.
MySQL insert duplicate key
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