Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>look this example,this is how you can make pagination with MySQL.</p> <p>The first parameter is the row to begin and the second is the number of result to display</p> <pre><code>mysql&gt; select * From t1 limit 0,5; +----------+------------+--------------+---------------------+ | actor_id | first_name | last_name | last_update | +----------+------------+--------------+---------------------+ | 1 | PENELOPE | GUINESS | 2006-02-15 04:34:33 | | 2 | NICK | WAHLBERG | 2006-02-15 04:34:33 | | 3 | ED | CHASE | 2006-02-15 04:34:33 | | 4 | JENNIFER | DAVIS | 2006-02-15 04:34:33 | | 5 | JOHNNY | LOLLOBRIGIDA | 2006-02-15 04:34:33 | +----------+------------+--------------+---------------------+ 5 rows in set (0.00 sec) mysql&gt; select * From t1 limit 5,5; +----------+------------+-----------+---------------------+ | actor_id | first_name | last_name | last_update | +----------+------------+-----------+---------------------+ | 6 | BETTE | NICHOLSON | 2006-02-15 04:34:33 | | 7 | GRACE | MOSTEL | 2006-02-15 04:34:33 | | 8 | MATTHEW | JOHANSSON | 2006-02-15 04:34:33 | | 9 | JOE | SWANK | 2006-02-15 04:34:33 | | 10 | CHRISTIAN | GABLE | 2006-02-15 04:34:33 | +----------+------------+-----------+---------------------+ 5 rows in set (0.00 sec) mysql&gt; select * From t1 limit 10,5; +----------+------------+-----------+---------------------+ | actor_id | first_name | last_name | last_update | +----------+------------+-----------+---------------------+ | 11 | ZERO | CAGE | 2006-02-15 04:34:33 | | 12 | KARL | BERRY | 2006-02-15 04:34:33 | | 13 | UMA | WOOD | 2006-02-15 04:34:33 | | 14 | VIVIEN | BERGEN | 2006-02-15 04:34:33 | | 15 | CUBA | OLIVIER | 2006-02-15 04:34:33 | +----------+------------+-----------+---------------------+ 5 rows in set (0.00 sec) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload