时间:2021-07-01 10:21:17 帮助过:4人阅读
insert into `test` (`job_id`, `user_name`, `total_time`) values (‘12345‘, ‘zhangsan‘, ‘10‘) on duplicate key update `job_id` =‘12345‘,`user_name` = ‘zhangsan‘, `total_time`= ‘14‘;
会判断主键或唯一键,存在就更新,不存在就插入
on duplicate key mysql插入更新
标签:sql san test duplicate 判断 date value 更新 into