SELECT a.dwname,count(*) as num FROM sys_acc a GROUP BY a.dwname HAVING num>1;
dwname字段值相同的 有num条
————————只为延续被帮助过的感动。