假如表名为Tab, 人名字段为 myname, 查询语句: select myname, count() from tab group by myname having count() > 1 如果 having 子句不加,则是统计各名字的数量,加上则只显示 数量大于 1 的人名