当前位置:Gxlcms > mysql > SQL分页语句三方案

SQL分页语句三方案

时间:2021-07-01 10:21:17 帮助过:28人阅读

方法一: 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 ,

人气教程排行