好煩啊,讓我作android,2年沒作過了,難受182. Duplicate Emails

兩個sql  having效率高,比我本身寫的快30ms,答案更簡潔,我的習慣sql

我寫的:效率

select a.Email from (select Email,count(Email) as num from Person group by Email) as a where a.num > 1select

 

答案:vi

select Email from Person group by Email having count(Email) > 1mail

 

我以爲答案更好,哈哈,不多用having,之後多用用,co

相關文章
相關標籤/搜索