I
itreflects
Hello,
Is there an API that can convert object implementation of
java.sql.ResultSet to a CSV file in Java?
i.e. when I execute
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT a, b FROM TABLE1");
can I say something like: store this rs object in "C:\result.csv" file.
I know I can write sequence of Java code that can achieve this, but it
becomes performance bottleneck when result set contains more than 1
million records.Is there an alternate way?
Thanks for any help!
Is there an API that can convert object implementation of
java.sql.ResultSet to a CSV file in Java?
i.e. when I execute
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT a, b FROM TABLE1");
can I say something like: store this rs object in "C:\result.csv" file.
I know I can write sequence of Java code that can achieve this, but it
becomes performance bottleneck when result set contains more than 1
million records.Is there an alternate way?
Thanks for any help!