开发者

How to populate 2 CachedRowSet with the same ResultSet?

开发者 https://www.devze.com 2023-03-24 01:16 出处:网络
I need help 开发者_StackOverflowwith duplicating a ResultSet using CachedRowSet or any other way possible. I\'m at this point

I need help 开发者_StackOverflowwith 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?


to do a deep copy try

CachedRowSet crs2 = crs.createCopy();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号