查询表A中存在ID重复三次以上的记录

Select * From A Where id in(select ID from A group by id having count(id)>3)

猜你喜欢

转载自www.cnblogs.com/jingsupo/p/10132819.html