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)
新聞熱點
疑難解答