SELECT t.* FROM 表1 t1INNER JOIN (select 字段1,字段2 from 表1 group by 字段1,字段2 having count(字段1)>1) t2ON t1.字段1=t2.字段1AND t1.字段2=t2.字段2
你可以通过类似如下写法来实现select col1,col2 from table1 group by col1,col2 having count(*) > 1
字段固定么?