This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JDBC and the fly likes Java class to perform Unpivot operator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Java class to perform Unpivot operator" Watch "Java class to perform Unpivot operator" New topic
Author

Java class to perform Unpivot operator

Dar Var
Ranch Hand

Joined: Oct 12, 2004
Posts: 74
Anyone know of a algorithm or Java class that can perform an unpivot operation on a ResultSet.

i.e. similar to Oracles Unpivot operator. See Example here

However I have to do this on the ResultSet returned. I can't do it in the sql.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19556
    
  16

Check out what ResultSet.getMetaData() returns and what you can retrieve from it.

Moving to JDBC.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java class to perform Unpivot operator
 
Similar Threads
unsigned right shift operator (>>>)
List Sorting
question about garbage collection
HTML Encoding in Java
JDBC compare the content of two tables