注册 登录
编程论坛 SQL Server论坛

求助如何根据计数有选择输出列表

findgood 发布于 2009-09-01 09:38, 642 次点击
对有关字段计数汇总,计数>1的列表输出.
2 回复
#2
zongshi1232009-09-17 16:30
显示>1的:select 字段 from 表 where 字段>1
显示>1的有多少列: select count(字段) from 表 where 字段>1
#3
gdy03492009-09-17 20:31
select 字段,count(字段)from tablename group by 字段 having count(字段)>1
1