When a query statement is used, the first few or a few rows of data are often returned. What should I do at this time? Don't worry,MySQLThis feature has been provided for us.
Select * from Table limit [offset,] rows | rows offset
The limit clause can be used to force the SELECT statement to return the specified number of records. Limit accepts one or two numeric parameters. The parameter must be an integer constant. If two parameters are specified, the first parameter specifies the offset of the first returned record row, and the second parameter specifies the maximum number of returned record rows. The offset of the initial record row is 0.
Mysql> select * from Table limit 5, 10; // retrieve records Row 6-15 // to retrieve all record rows from an offset to the end of the record set, you can specify the second parameter-1: mysql> select * from Table limit 95,-1; // retrieve the 96-last record row. // if only one parameter is specified, it indicates the maximum number of record rows returned: mysql> select * from Table limit 5; // retrieves the first five record rows // In other words, limit N is equivalent to limit 0, N.