查某张表中某字段重复记录大于1的语句

select * from tab1 where xh in (select xh from tab1 group by xh having count(*)>1 )

猜你喜欢

转载自summerlin.iteye.com/blog/2247577
今日推荐