SQL分页语句三方案
程序员文章站
2022-05-17 08:29:53
...
方法一: 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 ,
下一篇: PHP 信息匹配