4

Newbie question: I want to get data between two rows, say, row number 5 and row number 10. How can I do that? There is no id or any integer column in the table and I cannot modify the table.

3
  • dev.mysql.com/doc/refman/5.1/en/select.html Commented Apr 27, 2011 at 6:43
  • If you want to talk about row numbers and rows between them, you have to specify how you order the rows. There is no natural ordering on rows in MySQL. Commented Apr 27, 2011 at 6:45
  • @martijn: The answer by Harry Joy satisfied my needs. However, I will read more about ordering in MySQL. Thank you. Commented Apr 27, 2011 at 8:02

1 Answer 1

4

You can use limit

select * from `table` limit 4,5;
Sign up to request clarification or add additional context in comments.

1 Comment

I am a first time user. Moreover, there is a certain time limit before which you cannot upvote/accept an answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.