摘要:
select identity(int,1,1) as autoID, * into #Tmp from [QYTS_QiYeCecdb]select min(autoID) as autoID into #Tmp2 from #Tmp group by wanfang_idselect * from #Tmp where autoID in(select autoID from #tmp2)select * into #Tmp3 from (select * from #Tmp where autoID in(select autoID from #tmp2)) as Tselect * f 阅读全文