标签:sql san test duplicate 判断 date value 更新 into
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‘;
会判断主键或唯一键,存在就更新,不存在就插入
标签:sql san test duplicate 判断 date value 更新 into
原文地址:https://www.cnblogs.com/zhangxiaoj/p/11294409.html