mysql limit to use

Use of the mysql Encyclopedia limit tab
 . 1 m tuples (limit n, m) is taken after the n rows in the table.
 SELECT  *  from student limit 4 , . 8 ; // remove the student table 8 row 4 tuple (interval here is the left and right opening and closing)
 2 remove the first m rows of the table elements (limit m).
 SELECT  *  from student limit 3 ; // remove the first three rows of the student table element group
 3 is taken out of a table of a page elements 
to meet certain conditions in a table set of tuples we think is page. 
< . 1 > m tuples (limit n, m) after the removing of the n-th row
 SELECT  *  from Student WHERE Score > 75 limit 2 , 2 ;// remove meet ff score greater than 75 minutes in group 2 rows two yuan
 < 2 > m tuples (limit m) fetched page
 SELECT  *  from Student WHERE Score > 75 limit 2 ; // remove greater than satisfying results page 75 points in the first two rows tuples

 

Guess you like

Origin www.cnblogs.com/FengZeng666/p/11387643.html