当前位置:Gxlcms > 数据库问题 > sql统计重复数据

sql统计重复数据

时间:2021-07-01 10:21:17 帮助过:2人阅读

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

 

技术分享

 

sql统计重复数据

标签:

人气教程排行