SQL分页语句三方案
程序员文章站
2023-12-29 22:26:40
...
方法一: SELECT TOP 页大小 *FROM table1WHERE id NOT IN(SELECT TOP 页大小*(页数-1) id FROM table1 ORDER BY id)ORDER BY id
方法一:
SELECT TOP 页大小 * FROM table1 WHERE id NOT IN ( SELECT TOP 页大小*(页数-1) id FROM table1 ORDER BY id ) ORDER BY id ,