如何查找某些字段重复的数据? select * from t awhere exists(select 1 from t where col1=a.col1 and col2=a.col2) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 上面错了select * from t awhere (select count(*) from t where col1=a.col1 and col2=a.col2)>1 select 字段2,字段3 from tb a,(select 字段2,字段3 from tb group by 字段2,字段3 having count(*)>1)bwhere a.字段2=b.字段2 and a.字段3=b.字段3 求sql 帮忙看一下这个存储过程有什么错误? 如何调用webserice? 一个数据库查询的问题 master DB 的問題 数据库发生附加错误,怎样修复? Analysis Services 可以定时更新数据吗? 为什么日志文件收缩不了 server2003下如何配置sql server 2000 Pro,才可以实现sql server远程连接? 又一存储过程问题 数据一致性问题 profiler的問題
select * from t a
where (select count(*) from t where col1=a.col1 and col2=a.col2)>1
(select 字段2,字段3 from tb group by 字段2,字段3 having count(*)>1)b
where a.字段2=b.字段2 and a.字段3=b.字段3