首先你的表中要新增一个id identity(1,1)的字段,然后可以用下面的语句来实现1.不考虑id编号不连续的问题(因删除)
select * from table where id between 10 and 202.考虑id不连续的情况
select top 10 * from table
where id not in(select top 10 id from table)通过改变10和20这两数值,你可以查找你想要区段的记录
select * from table where id between 10 and 202.考虑id不连续的情况
select top 10 * from table
where id not in(select top 10 id from table)通过改变10和20这两数值,你可以查找你想要区段的记录
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货