Select no=Identity(int,1,1),* Into #temptable From TableName --Order By SortFieldSelect * From #temptable --Where no>=6 And no < 10Drop Table #temptable
原文转自:http://www.ltesting.net