Sybase offset for pagination

前端 未结 7 2129
旧巷少年郎
旧巷少年郎 2020-12-06 14:14

Is there any simple way to implement pagination in sybase? In postgres there are limit and offset in mysql there is limit X,Y. What about sybase? There is top clausure to li

7条回答
  •  醉酒成梦
    2020-12-06 14:33

    Sybase SQL Anywhere example, rows per page:10, offset:1000.

    SELECT top 10 start at 1001  * FROM employee order by employeeid
    

    Note: You need to specify the order by column.

提交回复
热议问题