MySQL删除重复数据
MySQL删除重复数据一 述求背景二 SQL
一 述求背景
快速删除表中重复的数据, 只保留一条数据。
比如我的表t_table, 有自增id,有特殊场景filed_name1,
只有此场景下数据被重复了,因此需要针对这部分数据进行处理
二 SQL
delete from t_table where filed_name1 = "你的特殊场景" and id not in (select t...
原创
2020-04-07 17:19:57 ·
126 阅读 ·
0 评论