mysql 数据不存在插入,存在则更新
insert into car_media_article_click(media_id,article_id,click_num) values(3,1770351,1) on duplicate key update click_num = click_num + 1
其实我一直在你身边
insert into car_media_article_click(media_id,article_id,click_num) values(3,1770351,1) on duplicate key update click_num = click_num + 1