select * from table limit 5,10; // 检索记录行 6-15//为了检索从某一个偏移量到记录集的结束所有的记录行,可以指定第二个参数为 -1:
select * from table limit 95,-1; // 检索记录行 96-last.//如果只给定一个参数,它表示返回最大的记录行数目:
select * from table limit 10; //检索前 10 个记录行
SQL LIMIT 用法详解
select * from table limit 5,10; // 检索记录行 6-15select * from table limit 95,-1; // 检索记录行 96-last.select * from table limit 10; //检索前 10 个记录行
3万+
1075

被折叠的 条评论
为什么被折叠?