转:SQL重复记录查询
摘要:
select distinct * into #Temp from RepeatAlldrop table RepeatAllselect * into RepeatAll from #Temp drop table #Tempselect identity(int,1,1) id,* into #Temp from RepeatAlldrop table RepeatAll--selectselect name,sex,address from #Temp group by name,sex,address having (count(*)>1)--deletedelete from 阅读全文
posted @ 2011-03-09 10:55 catvi 阅读(191) 评论(0) 推荐(0) 编辑