SELECT id,field1,COUNT(field2) as total FROM table_name GROUP BY field1 HAVING total > 1
吃西瓜的花猫
海不会不蓝