sql查询重复数据 表 a id 字段1 字段2 字段3 字段4 1 1111 2222 3333 4444 2 0
2024-12-23 00:16:36
推荐回答(1个)
回答1:
select da,count(*) from ( select id,字段1 da from A union select id,字段2 from A union select id,字段3 from A union select id,字段4 from A ) aa group by da having count(*) > 1