select name,count(name)from 表group by namehaving count(name)>1
select name,count(1)from tabnamegroup by namehaving count(1) > 1