怎样把有某些字段取值重复的记录找出来? select * from t1 where f1=f2 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from t1 a where exists ( select f1 from t1 b where a.f1=b.f1 and a.f2=b.f2 group by f1,f2 having count(*)>1) --如果是找出f1+f2重复的记录,就用:select a.* from t1 a join(select f1,f2 from t1 group by f1,f2 having count(*)>1)b on a.f1=b.f1 and a.f2=b.f2 sql 交集查询问题 SQL查询问题~~急~~group by 出了问题~~ 请问大家一个布尔型的问题,谢谢 SQL查询 错误137:必须声明变量‘@’ 急,求一sql语句, SQL语句问题 分布式查询!! 誰能給我一些數據? 怎样避免死锁? 急!为什么我装不上SQL SERVER 2K? 大家来帮帮看看怎么生成这么个表
select f1,f2 from t1 group by f1,f2 having count(*)>1
)b on a.f1=b.f1 and a.f2=b.f2