如何过滤sql表中的两列或三列相同的数据行,显示的是相同的数据,不相同的不显示 select a.* from scoreInfo a inner join (select stuid,proid from scoreInfo group by stuid,proid having count(*)>1) b on a.stuid=b.stuid and a.proid=b.proid 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 或者这样写,select * from scoreInfo a where exists(select 1 from scoreInfo b where b.stuid=a.stuid and b.proid=a.proid and b.id<>a.id) 如何同步更新两表中的同一列值 SQL中存储过程--游标问题---帮我找错误,谢谢 建表问题 sql中怎么处理单引号? 如何实现这样的查询? 很简单的一个问题,关于ntext类型??? 存储过程中的表名变量问题请教 一对多连表查询问题?? 把分全部散掉,转入SQL区,重新开始。 触发器的问题 sqlserver2008 更新字段问题 sqlserver存储过程谁能帮忙改为oracle
where exists(select 1 from scoreInfo b
where b.stuid=a.stuid and b.proid=a.proid and b.id<>a.id)