1.分页查询(MySQL特有的,oracle中没有)
栗子1:
每页最多3条记录:pageSize=3:第一页:SELECT * FROM product LIMIT 0,3第二页:SELECT * FROM product LIMIT 3,3第六页:SELECT * FROM product LIMIT 15,3
加了个条件:
SELECT * FROM product WHERE id>5