PHP Mysql
group by和having
SELECT sex,COUNT(sex) as num FROM ... GROUP BY sex HAVING num>=3