Write a SQL query to find all duplicate emails in a table named Person.
Id | |
---|---|
1 | a@b.com |
2 | c@d.com |
3 | a@b.com |
For example, your query should return the following for the above table:
a@b.com |
Note: All emails are in lowercase.
描述
找出重复的 Email
地址
代码
1 | -- 方法一 |
1 | -- 方法二 |
1 | -- 方法三 |
1 | -- 方法四 |
1 | -- 方法五 |