JFinal的ActiveRecord插件, 分页查询时写法如下:
// 分页查询年龄大于18的user,当前页号为1,每页10个user
Page<User> userPage = User.dao.paginate(1, 10, "select *", "from user where age > ?", 18);
很好奇为什么不是如下:
Page<User> userPage = User.dao.paginate(1, 10, "select * from user", "age > ?", 18);