这是一个非常清晰和值得赞的方法

假设从主键为id的student表中查找第n条到第m条的记录

select top m-n+1 *
from student
where (id not in (select top n-1 id from student))

 

相关文章:

  • 2022-12-23
  • 2021-12-24
  • 2021-11-14
猜你喜欢
  • 2022-02-09
  • 2021-06-05
  • 2021-05-28
相关资源
相似解决方案