sql - 选出指定范围的行

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 --删除临时表

 

posted @ 2015-01-20 23:44  wonkju  阅读(406)  评论(0编辑  收藏  举报