mysql重复插入时insert更改为update更新操作

insert into player_count(player_id,count,name) value(1,1,”张三”) on duplicate key update count= 2,name=”张三”;  

 

posted @ 2020-07-24 17:18  泥土里的绽放  阅读(1357)  评论(0编辑  收藏  举报