时间:2021-06-20 08:48:17 | 栏目:Mysql | 点击:次
select * from table limit m,n其中m是指记录开始的index,从0开始,n是指从第m条开始,取n条。
mysql(root@localhost:test)>select * from total limit 2,3;
+----+-----------------+--------+------------+
| id | name | number | mydate |
+----+-----------------+--------+------------+
| 3 | 河南出版社 | 1100 | 2010-04-24 |
| 4 | 河南出版社 | 1400 | 2011-04-24 |
| 5 | 河南出版社 | 1350 | 2012-04-24 |
+----+-----------------+--------+------------+
3 rows in set (0.00 sec)