MySQL 大量數(shù)據(jù)下進(jìn)行Limit

經(jīng)實(shí)驗(yàn)

mysql> select id from table limit 10000000,3 ;
+----------+
| id       |
+----------+
| 10039433 |
| 10039434 |
| 10039435 |
+----------+
3 rows in set (4.31 sec)


mysql> select * from table limit 10000000,3 ;
+----------+-----------------------------+------------------------------+
| id       | xxxxxxxx                    | xxxxxxxx                     |
+----------+-----------------------------+------------------------------+
| 10039433 | xxx   xxx                   | xx                           |
| 10039434 | xxx   xxx                   | xx                           |
| 10039435 | xxx   xxx                   | xx                           |
+----------+-----------------------------+----------------------------+-+
3 rows in set (17.37 sec)

故對于大數(shù)據(jù)量limit可以分段操作。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容