📅  最后修改于: 2022-03-11 15:05:35.656000             🧑  作者: Mango
SELECT a.*
FROM emails a
INNER JOIN
(SELECT email,
MIN(id) as id
FROM emails
GROUP BY email
) AS b
ON a.email = b.email
AND a.id = b.id;