//數據庫分頁計算 Integer pageNo = (pageNo -1) * pageSize; //數據庫內 order by id offset #{pageNo} rows fetch next #{pageSize} rows only