limit

select*fromtable limit 5; --返回前5行
select*fromtable limit 0,5; --同上,返回前5行
select*fromtable limit 5,10; --返回6-15行

select * from persons limit  A,  B;

解释:

A,查询起点

B,你需要的行数

posted @ 2016-03-11 17:16  okay4321  阅读(130)  评论(0编辑  收藏  举报