select t.* from ec_test_tbl t;
select t.name as 姓名, count(1) as 人数 ,(select count(1)from ec_test_tbl tt where 1=1and tt.name = t.nameand tt.sex = '男'group by t.name) as 男性人数from ec_test_tbl t where 1=1group by t.namehaving count(1) > 1