#前五行select*fromtablewhere age >10limit5#limit offset,size #从0索引开始,读取五行显示select*fromtablewhere age >10limit0,5#查询11到25行select*fromtablewhere age >10limit10,15
一.limit简单介绍关键字:-limit功能:读取结果指定行位置:语句最后#前五行select * from table where age >10 limit 5#limit offset,size #从0索引开始,读取五行显示select * from table where age >10 limit 0,5#查询11到25行select * from table where age >10 limit 10,15二.分页查询#显示第n页,每页size条数