limit 后面可以跟一个或两个参数,跟两个参数时:
<span style="font-size:14px;">select * from table limit 0,100; 查询0-100行的数据,0表示偏移量,100表示返回记录的最大条数
</span>
一个参数:
<span style="font-size:14px;">select * from table limit 100; 取前100条记录</span>
limit 后面可以跟一个或两个参数,跟两个参数时:
<span style="font-size:14px;">select * from table limit 0,100; 查询0-100行的数据,0表示偏移量,100表示返回记录的最大条数
</span>
<span style="font-size:14px;">select * from table limit 100; 取前100条记录</span>