I have 4000 rows for example, and I define X limit.
The query stops after it finds X rows? or the query finds all the rows and then takes X rows from the found rows?
SELECT * FROM your_table LIMIT 0, 10
your_table
0, 10
This will display the first 10 results from the database.
SELECT * FROM your_table LIMIT 5, 5
5, 5
This will show records 6, 7, 8, 9, and 10
It's like telling MySql; I want you to start counting from 5+1 or the 6th record, but Select only upto 5 records
MySql;