一个很有用的查询问题 select col from 表 group by col having count(*)>1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tb where col in(select col from 表 group by col having count(col)>1) select * from table where col in (selct a.col from (select count(*)as c,col from 表 group by col having count(*)>1) a) select 重复的字段 from 表where 重复的字段 in (select 重复的字段 from 表 group by 重复的字段 having count(*)>1 ) select * from tb where col in(select col from 表 group by col having count(col)>1) order by col加一个分组就更好了。谢谢两位大侠,但分数只能给一个人,不好意思。 未能找到 OLE DB 提供程序"SQLOLEDB"的注册表项--急 求sql优化语句 关于成绩表数据库的设计 sqlsever 怎么把 日期格式化 成 'YYYYMMDDHHMISS' 的格式? SQL SERVER 2005 安装 日期应用求教 二维数组传参问题 求SQL语句 谁给推荐一本好的学习SQL的书?(高分) 1*33与6*10那个查询更快 高手进来帮帮忙啦..好吗? 一个很有用的查询问题
where col in(select col from 表 group by col having count(col)>1)
重复的字段
from 表
where 重复的字段 in
(select
重复的字段
from 表
group by 重复的字段
having count(*)>1
)
where col in(select col from 表 group by col having count(col)>1) order by col加一个分组就更好了。谢谢两位大侠,但分数只能给一个人,不好意思。