Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filtering a java sql resultset

Status
Not open for further replies.
Apr 24, 2003
10
0
0
CA
Does anyone know whether you can filter on a returned java resultset WITHOUT executing another SQL with a filter (i.e. without performing another call on the DB)?

For example if I had a resultset with a list of Sales Reps and Province, could I filter on that returned resultset for the Sales Reps by Province?

Thanks for your help.
 
Loop the ResultSet, adding the fields into an ArrayList, then perform your own "filter", or add an ORDER BY clause to the SQL statement (or in the proc you are calling) ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top