输入banner图图片脚本导航/分类

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

 

技术分享

 

sql统计重复数据

标签: