File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Databases
»
JDBC
Author
Any way to sort result set?
Christopher Paul
Greenhorn
Joined: Oct 05, 2005
Posts: 4
posted
Oct 18, 2005 01:41:00
0
My program needs to display different "views" of a database. Basically I need the user to be able to sort the result set for any column.
Is there any slick way to do this?
I was thinking of putting the entire result set into a two-dimensional array, and then trying to sort it, but that seems inefficient.
Thanks!
Christopher Paul
Greenhorn
Joined: Oct 05, 2005
Posts: 4
posted
Oct 18, 2005 02:00:00
0
Ok, so I'm an idiot and didn't know about the ORDER BY command in SQL.
:roll:
David O'Meara
Rancher
Joined: Mar 06, 2001
Posts: 13459
I like...
posted
Oct 18, 2005 02:12:00
0
Oh.
Thank you for the update
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Any way to sort result set?
Similar Threads
returning a result set to a jsp
Counting number of rows in resultset
how to know when server automatically invalidates session
Result Set Sorting
How to set JSF component?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter