Select no=Identity(int,1,1),* Into #temptable From dbo.tName order by fName --利用Identity函数生成记录序号 Select * From #temptable Where no>=10 And no < 20 Drop Table #temptable --删除临时表