orcale分页查询sql语句:
SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM TABLE_NAME) A WHERE ROWNUM <= 页数*每次查询量 ) WHERE RN > (页数-1)*每次查询量
mysql分页查询sql:
SELECT a FROM 表名 WHERE name='bobo' LIMIT (页数-1)*每次查询量,页数*每次查询量;
orcale分页查询sql语句:
SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM TABLE_NAME) A WHERE ROWNUM <= 页数*每次查询量 ) WHERE RN > (页数-1)*每次查询量
mysql分页查询sql:
SELECT a FROM 表名 WHERE name='bobo' LIMIT (页数-1)*每次查询量,页数*每次查询量;