一般的分页都是由两条SQL语句组成,一条是查询符合条件的当前页的记录,一条是查询符合条件的记录总数。
但是上面的只有一条SQL语句,即可实现分页+查询。牛逼。
参考文档:
http://blog.csdn.net/onisland/article/details/5729549
http://blog.csdn.net/qq_17271573/article/details/48312195
mysql另类分页方法
标签:管理员 sdn view post 参考 sla log lan nis
一般的分页都是由两条SQL语句组成,一条是查询符合条件的当前页的记录,一条是查询符合条件的记录总数。
但是上面的只有一条SQL语句,即可实现分页+查询。牛逼。
参考文档:
http://blog.csdn.net/onisland/article/details/5729549
http://blog.csdn.net/qq_17271573/article/details/48312195
mysql另类分页方法
标签:管理员 sdn view post 参考 sla log lan nis