select * from student limit 5;
select * from student limit 0,5;
select * from student order by id asc limit 5;
前五条记录的查询语句。
查询后5条,注意结果为倒序排序,要使用desc
select * from student order by id desc limit 5
select * from student limit m,n;
返回m+1到m+n行记录,m代表开始的下标,n代表查找的结果数,将返回n行结果
select * from student limit 2,8; 返回3到10行记录
免费的mysql数据库,mysql中的1142,mysql 批量回返主键,mysql批量插数据死锁,invaild gbk mysql,mysql查询语句嵌套查询