sql limit i,n

limit i, n-;
i: results of a query index value (from zero by default), when When i = 0 can be omitted i
n-: number (i.e. the number of) returned by the query results
starts from + 1 of the i , n data fetch
limit n is equivalent to the limit 0, n
index is zero, but the data is stored from the beginning, that is to say limit 0,1; check out is the first data, limit 1,1; check out the data is the second.
limit only applies in mysql, Oracle paging query using a pseudo column.

Guess you like

Origin www.cnblogs.com/jasonboren/p/11709179.html