[quote=引用 1 楼 DBA_Huangzj 的回复:] select cid,snam from tb group by cid,snam having count(snam)>1
[quote=引用 3 楼 ap0405140 的回复:] select * from 学生名称表 a where exists (select 1 from 学生名称表 b where b.cid=a.cid and b.id<>a.id and b.snam=a.snam)
select * from 学生名称表 a where exists (select 1 from 学生名称表 b where b.cid=a.cid and b.id<>a.id and b.snam=a.snam)
select cid,snam from tb group by cid,snam having count(snam)>1
34,590
社区成员
254,589
社区内容
加载中
试试用AI创作助手写篇文章吧