Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有用户表,其中包含不同字符情况下的重复电子邮件。例如,在 users 表中,我有 2 条记录,一条是EXAMPLE@EXAMPLE.COM,第二条是example@example.com
如何使用 Postgres 找到所有这些重复项?
尝试将upper函数与group byand一起使用having:
upper
group by
having
select upper(string) from userstable group by upper(string) having count(1) >1