Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Random Row From ResultSet

843835Mar 9 2002 — edited Mar 9 2002
Hi, i need some help on this:

First, my JSP will query a database table and return a resultset that contains a lot of records. Is there a way to randomly choose ONE of the record from resultset ?

Number of records return by the resultset is dynamic (always change), so, is there a way to store all the records into array first?

Or do you have any other suggestions ?

Thank you !
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2002
Added on Mar 9 2002
1 comment
189 views