sql 从未连续的Id中选择10~30条数据

select * from(select *,row_number()over(order by ProductID) as num from Products) as t where t.num>10 and t.num<30
posted @ 2018-05-21 15:35  dxm809  阅读(125)  评论(0编辑  收藏  举报