网友回复
第一种采用offset fetch next方式,2012版本之上支持 select * from users order by id offset 0 rows fetch next 10 rows only ;; //offset A rows ,将前A条记录舍去,fetch next B rows only ,向后在读取B条数据
第二种,利用row_number() over(order by id)函...
点击查看剩余70%
网友回复
第一种采用offset fetch next方式,2012版本之上支持 select * from users order by id offset 0 rows fetch next 10 rows only ;; //offset A rows ,将前A条记录舍去,fetch next B rows only ,向后在读取B条数据
第二种,利用row_number() over(order by id)函...
点击查看剩余70%