判断一个表里面有没有相同的数据

select * from (select code,count(code) num from mmf group by code) a where a.num>=2

猜你喜欢

转载自www.cnblogs.com/wwwlzp/p/8974825.html