56,677
社区成员
发帖
与我相关
我的任务
分享
select
*
from
tb t
where
(select count(1) from tb where 名字=t.名字 and 版本=t.版本)>1
select 名字,版本
from 表
group by 名字,版本
having count(*)>1
select
a.*
from
tb a,
(select 名字,版本 from tb group by 名字,版本 having count(1)>1) b
where
a.名字=b.名字 and a.版本=b.版本