In MySQL's limit usage, there is a discussion on the Internet:
"//In order to retrieve all record rows from one offset to the end of the recordset, you can specify a second parameter of-1:
Mysql> SELECT * from table LIMIT 95,-1; Retrieves the record line 96-last. "
The person who wrote this sentence certainly did not actually do it, because it was wrong.
inch for ' -1 ' 3
Take a look at MySQL's official documentation: http://dev.mysql.com/doc/refman/6.0/en/select.html
The LIMIT clause can used to constrain the number of rows returned by the SELECT statement. LIMIT takes one or both numeric arguments, which must both be nonnegative integer constants (-1 back off!) )with these exceptions:
Within prepared statements, LIMIT parameters can be specified using? Placeholder markers.
Within stored programs, LIMIT parameters can be specified using integer-valued routine parameters or local variables.
With a arguments, the first argument specifies the offset of the first row to return, and the second specifies the m Aximum number of rows to return. The offset of the initial row is 0 (not 1):
SELECT * from TBL LIMIT 5, 10; # Retrieve rows 6-15
To retrieve all rows from a certain offsetup to the end of the result set, you can use some large number for the second parameter. This statement retrieves all rows from the 96th row to the last:
SELECT * from TBL LIMIT 95,18446744073709551615;
With one argument, the value specifies the number of rows to return from the beginning of the result set:
SELECT * from TBL LIMIT 5; # Retrieve First 5 rows
In other words, limit row_count are equivalent to limit 0, Row_count.
MYSQL LIMIT Usage Detailed