sql server中查询一个表中某个数据重复条数大于1的所有信息

sql server中查询一个表中某个数据重复条数大于1的所有信息

select id,Count(*) from  table group by id having count(id)>1

 

posted @ 2022-01-12 17:33  我的未来方程式i  阅读(431)  评论(0编辑  收藏  举报