如何将单个 SELECT sql 语句的每行结果假脱机到不同的输出文件?例如,如果我有
SELECT * FROM myTable WHERE columnId < 45;
while (rs.next()) {
result of row1 goes to row1.txt;
result of row2 goes to row2.txt;
result of row3 goes to row3.txt;
result of row4 goes to row4.txt;
}