This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I need to display records from the database in a shot of 20. The database may contain as many records. Whenever, I move next and previous screens (using jsp page), I need to query the database using the start and finish indices so that always the recent data is always displayed. In other words, I need to query the database every time. Can any one help me with the code to retreive the result set having ONLY 20 records or less.? regards, Smitha
"smitha", Thanks for participating here at the Ranch. However, the name you are using does not comply with our naming convention described at http://www.javaranch.com/name.jsp . Please log in with a new name, which meets these requirements. You can change your name here. Thanks. Sean
Hi Smitha, This will be database specific.If you are using MySql then you have to retrive all data in an array or vector and then display in a slots. I think in case of Oracle the specific query is available to display the rows in a slot.