1

I need help with duplicating a ResultSet using CachedRowSet or any other way possible. I'm at this point

ResultSet rs = stmt.executeQuery(query);

CachedRowSetImpl crs = new CachedRowSetImpl();
crs.populate(rs);

How would one populate a different CachedRowSet, say crs2, with the ResultSet rs?

bluish
  • 26,356
  • 27
  • 122
  • 180
Princesden
  • 33
  • 1
  • 4

1 Answers1

1

to do a deep copy try

CachedRowSet crs2 = crs.createCopy();
Kevin Burton
  • 11,676
  • 2
  • 24
  • 37