https://dba.stackexchange.com/questions/69537/limit-1000-25-vs-limit-25-offset-1000
5
|
In terms of operation
there is absolutely no difference in the statements
@siride's comment is exactly the point.
From the same Documentation
YOUR ACTUAL QUESTIONS
Since both queries are the same, there is no difference
Using
LIMIT does not change any result sets. They simply navigate within the result set.
This query
would be different from
because the LIMIT is being applied at a different stage.
The first query returns nothing if tablename has less 1000 rows
The second query returns nothing if the subquery has less 1000 rows
CONCLUSION
You will have to sculpt the query to make sure you are sorting data at the right stage
|
Comments
Post a Comment