select * from tms_mer where merid in(select merid from tms_mer group by merid having count(*)>1);
或者:
select merid,count(1) from tms_mer m group by m.merid having count(1)>1;
select * from tms_mer where merid in(select merid from tms_mer group by merid having count(*)>1);
或者:
select merid,count(1) from tms_mer m group by m.merid having count(1)>1;