MySQL筛选多列重复的记录 发表于 2020-05-07 更新于 2025-08-23 分类于 Database , MySQL 阅读次数: Waline: 单列去重比较简单,如果多列要去重,怎么找出重复的值? 123456789101112131415SELECT field1, COUNT(field1), field2, COUNT(field2), ...FROM table_nameGROUP BY field1, field2, ...HAVING (COUNT(field1) > 1) AND (COUNT(field2) > 1) AND ...