悉野小楼

导航

在查询结果中查询

查询结果放到临时表中, 在临时表中查询. 

select count(*) as c, gameserverid into #tmp from gms_data  

group by [filename], gameserverid having count(*) > 1
select * from #tmp

posted on 2012-10-30 14:03  悉野  阅读(130)  评论(0编辑  收藏  举报