MySQL limit range

后端 未结 5 1407
无人及你
无人及你 2020-12-05 18:32
SELECT name FROM mydb ORDER BY score DESC LIMIT 10;

The query above will return the first 10 ranks.

How to modify the LIMIT, o

5条回答
  •  执念已碎
    2020-12-05 19:12

    Use offset to clarify the query.

    SELECT name FROM mydb ORDER BY score DESC LIMIT 10 OFFSET 10
    

提交回复
热议问题