跳至主要內容

GOOD NIGHT

Where there is life, there is struggle

resume
个人简历
Lottery
抽奖系统
DB-Router
分库分表
...
InsertOrUpdate

InsertOrUpdate

SQL 实现 insertOrUpdate

-- 如果存在就更新为 zs
insert into user values(1, 'zs') on duplicate key update name = 'zs';

博识笔记小于 1 分钟notemysql