What I need is two queries similar to this one:
SELECT * FROM anchors WHERE site_url = '$site_current'
- The first one would query the first 10 rows
- The other one would query all the remaining rows, starting with row #11
How can I do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Query 1:
Query 2:
or (different syntax but with same effect):
Unbelievably, with mysql you can’t specify an offset without a limit, so you have to use this retarded syntax of having a massively large limit to get “all remaining rows”, no matter which syntax version you use.