标签: sql
我有一张表看起来像这样的
正如您所看到的,我的行具有相同的帐户名,但其余列不同 我想列出整个记录having count(AccName) > 1
having count(AccName) > 1
答案 0 :(得分:0)
select ID, AccName, User, country, zip from your_table where AccName in (select AccName from your_table group by AccName having count(*) > 1)