如何在SQL Server中实现 Limit m,n 的功能
答案:2 悬赏:50
解决时间 2021-01-17 00:31
- 提问者网友:呐年旧曙光
- 2021-01-16 04:41
如何在SQL Server中实现 Limit m,n 的功能
最佳答案
- 二级知识专家网友:山有枢
- 2021-01-16 05:05
select top (n-m+1) id from tablename
where id not in (
select top m-1 id from tablename
)
where id not in (
select top m-1 id from tablename
)
全部回答
- 1楼网友:枭雄戏美人
- 2021-01-16 06:02
用TOP 加 ORDER BY 或者 WHERe
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息!
大家都在看
推荐信息