select ** from xxx from table where xx in(select xx from group by 字段 having count(*) 》=2)