I would like to limit the amount of rows I fetch in MySQL. Can you show me how?
ex:
in mysql you do as follows
SELECT * FROM PERSON_TBL LIMIT 0, 1000
SELECT * FROM PERSON_TBL LIMIT 1000, 1000
Query 1 will fetch first 1000 records,
Query 2 will fetch next 1000 records
Syntax for limits clause
LIMITS OFFSET, ROWCOUNT
Where ROWCOUNT give number of row to fetch
OFFSET gives from which row to fetch more info here