Let's assume the table has 110 rows. The following skips the first 10 rows and returns the other 100:
SELECT ... FROM ... ORDER BY ... LIMIT 10, 100
Is there a way to replace 100 by whatever is left?
Desired pseudo-code:
SELECT ... FROM ... ORDER BY ... LIMIT 10, *
Not sure about the execution time though.
This is returning the number of available rows