查询从m到n的这几条记录

m-n
go
select top (n-m+1) * from stu where id not in (select top (m-1) ID from stu )

--51-100
select top 50 * from stu where id not in (select top 50 ID from stu )

posted on 2012-07-19 15:19  成天狂  阅读(126)  评论(0编辑  收藏  举报