使用sql语句在语句末尾添加 limit page,count //意思是 获取从page+1开始的count条记录
例如:select * from checkmoney where phonenumber='18209183861' order by check_start_time desc limit 1,5;
这条语句获取了 checkmoney的第 2条至第6条 记录。
使用sql语句在语句末尾添加 limit page,count //意思是 获取从page+1开始的count条记录
例如:select * from checkmoney where phonenumber='18209183861' order by check_start_time desc limit 1,5;
这条语句获取了 checkmoney的第 2条至第6条 记录。
本文标题:使用sql语句实现分页查询
本文链接:https://www.haomeiwen.com/subject/oaqamxtx.html
网友评论