sql统计重复数据
sql代码如下:
统计重复的数据
select MingCheng from tabShouFeiGongShi group by MingCheng having count(MingCheng) >= 2
select * from
(select *
from tabShouFeiGongShi
where MingCheng in (select MingCheng from tabShouFeiGongShi group by MingCheng having count(MingCheng) >= 2)) t order by MingCheng

浙公网安备 33010602011771号