Click here to Skip to main content
15,908,634 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello


I am trying to display table data based on LIMIT in mysql. Now My Query is SELECT Name FROM teacher_reg LIMIT 2 , It is displaying first two table data. Here, my problem is How i can display data from 20th row. I am using ID, But It can be delete when we are modifying table. So please help me to fix this problem. Thanks in advance..
Posted

1 solution

hi ,
limit has two arguments if you require 2 record from 20th row you can write
SELECT Name FROM teacher_reg LIMIT 20,2

first argument is starting position and next is page size(no of record)
 
Share this answer
 
Comments
Ajith_joseph 28-Mar-12 4:41am    
Thank you very much.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900