學習mysql分頁查詢功能

使用Limit m ,n 實現分頁查詢 Limit 和 offset 的關係 示例, select * from exmaple_userinfo limit m ,n; 查詢第1條到第10條的數據的sql是:select * from table limit 0,10; ->對應我們的需求就是查詢第一頁的數據:select * from table limit (1-1)*10,10; 查詢第1
相關文章
相關標籤/搜索