sql语句查询重复的字符串

select id, name, memo
from A
where id in (select id from A group by id having count(1) >= 2)

 

 

有点点复杂,不如用excel来的快

=COUNTIF(A:A,A1)

posted @ 2021-01-20 16:42  bH1pJ  阅读(132)  评论(0编辑  收藏  举报