时间:2021-07-01 10:21:17 帮助过:92人阅读
# 保留主键 ID 较小的那条记录 DELETE n1 FROM names n1, names n2 WHERE n1.id > n2.id AND n1.name = n2.name # 保留主键 ID 较大的那条记录 DELETE n1 FROM names n1, names n2 WHERE n1.id < n2.id AND n1.name = n2.name
参考链接:
MySQL 数据库删除表中重复数据
标签:删除重复数据 exce flow 数据表 重复数 .com nbsp scrapy row