aspose file tools
The moose likes Servlets and the fly likes Display 20 records per page use MySQL(urgent) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Display 20 records per page use MySQL(urgent)" Watch "Display 20 records per page use MySQL(urgent)" New topic
Author

Display 20 records per page use MySQL(urgent)

Dorj Galaa
Ranch Hand

Joined: May 29, 2001
Posts: 113
Hello
My task is display 20 record per page.
where rownum<20 not working on MySQL


Senior software engineer
Kareem Gad
Ranch Hand

Joined: Aug 06, 2001
Posts: 89
mySQL uses this syntax
select * from table limit 0,20
the 0 denots the starting row
20 denotes the number of rows you want to retrieve starting from starting row
so retrieving the next 20 would be limit 20,20
then limit 40,20
and so on.
this question should belong i guess in another forum not on the jsp and servlet page i think what do u think moderator ? move it?

------------------
KaReEm


<b><i>KaReEm</i><br /><ul type="square"><li>SCJP-Free Range Web Developer <br /></ul></b>
Kareem Gad
Ranch Hand

Joined: Aug 06, 2001
Posts: 89
Oh i didn't notice it was you Dorj
Keep them comming
------------------
KaReEm
Dorj Galaa
Ranch Hand

Joined: May 29, 2001
Posts: 113
thanks
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Display 20 records per page use MySQL(urgent)
 
Similar Threads
How to display search results in separate pages?
page pagination
how to make a page type recordset
how to display records of mysql database in multiple web pages (page1,page2..) using jsp
pagination for images / picture