mysql查询语句,通过limit来限制查询的行数。
例如:
select name from usertb where age > 20 limit 0, 1; //限制从第一条开始,显示1条
select name from usertb where age > 20 limit 1; //同上面的一个效果
select name from usertb where age > 20 limit 4, 1; //显示从第五条开始,显示1条
2018-07-08 22:12:24
浏览 1982
mysql查询语句,通过limit来限制查询的行数。
例如:
select name from usertb where age > 20 limit 0, 1; //限制从第一条开始,显示1条
select name from usertb where age > 20 limit 1; //同上面的一个效果
select name from usertb where age > 20 limit 4, 1; //显示从第五条开始,显示1条
随时随地看视频慕课网APP
相关课程