Skip to Main Content

Java Database Connectivity (JDBC)

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!

Merging two same type of ResultSet.

843859Nov 16 2009 — edited Nov 18 2009
Hi,
I am having some problem in merging the two same type of result set.
For example,
String sql1 = select * from Sales where Invoice>5 and invoice<10 has ResultSet rs1, And
String sql2 = select * from Sales where invoice >10 has ResultSet rs2.
Now what i simply want is to add or merge this two resultSets rs1 and rs2.
Please this is only the sample code. Making of this two individual result set is really complex and i cant write such a long code that contains joinRowSet and all that stuff to make this ResulSets.

So please help to me add or merge this two resultSet.
Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 16 2009
Added on Nov 16 2009
12 comments
821 views