In Oracle,

Select * from tablename where rownum>= var1 and rownum<=var2;

In MySQL

select * from tablename limit var1,var2;

where you pass the var1 and var2 values dynamically;


----- Original Message -----
From: "Thang Nguyen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 11:04 PM
Subject: resource (JSP, java source code) for message board example


> Hello,
>
> I am looking for some examples that enable me to do something like yahoo message
> board.  The main thing I am looking for is how to implement the Previous 50
> button or Next 50 button.
>
> Let's say all my messages are stored in an database, and there are a lot of them.
> I would like to get only 50 messages each time, what would be the implementation
> for this.    Can someone suggest a design or please point me to a place so that I
> can get a sample code?.
>
> Thanks much for this.
> TN
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Thanks & Regards
Bhushan Bhangale
Consultant
http://www.netacross.com
Chequemail.com - a free web based e-mail service that also pays!!!
http://www.chequemail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to