mysql基礎 查詢某屬性值出現次數大於1

shop000發表於2018-05-21

GROUP BY 和 having

SELECT s.`name`,COUNT(*) from score s GROUP BY s.`name` HAVING COUNT(*) > 1


相關文章