How do I implement pagination in SQL for MS Access?

前端 未结 6 1472
自闭症患者
自闭症患者 2020-11-30 06:02

I\'m accessing a Microsoft Access 2002 database (MDB) using ASP.NET through the OdbcConnection class, which works quite well albeit very slowly.

My quest

6条回答
  •  醉话见心
    2020-11-30 06:37

    I use this SQL code to implement the pagination with Access

    Select TOP Row_Per_Page * From [
    Select TOP (TotRows - ((Page_Number - 1) * Row_Per_Page)
    From SampleTable Order By ColumnName DESC
    ] Order By ColumnName ASC

    I've published an article with some screenshots on my blog

提交回复
热议问题