select identity(int,1,1) as id,username into #temp from table1 group by username select * from #temp 相关文章: