2.8 DQL paging query

First, the application scenarios

When too many entries to query, display an incomplete

Second, grammar

 
select query list
from 表
limit 【offset,】size;
 
note:
On behalf of the entries in the index is the starting offset, the default starting from 0
size represents the number of entries displayed
 
official:
If the number of pages to be displayed as a page, each page size for the number of entries
select query list
from 表
limit (page-1)*size,size;
 

Guess you like

Origin www.cnblogs.com/huabro/p/12624214.html