如何查200到300行的记录?
可以通过top关键字辅助
select top 100 * from table where id is not in (select top 200 id from table);
总结:
查询n到m行记录的通用公式:
select top m * from table where id is not in (select top n * from table)
可以通过top关键字辅助
select top 100 * from table where id is not in (select top 200 id from table);
查询n到m行记录的通用公式:
select top m * from table where id is not in (select top n * from table)
转载于:https://my.oschina.net/cqyj/blog/1573136