How to select 1st, 3rd, 11th and nth row from a table?
Share
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.
If there is a primary key defined for the table that is an integer based data type–both MySQL and SQLite have auto_increment for example–then you can use:
…where
idis the auto_increment column.There’s very little detail to go on, but MySQL and SQLite do not have analytic query support, making queries rather complicated: