【发布时间】:2013-10-22 01:39:01
【问题描述】:
如何将单个 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;
}
【问题讨论】:
-
您使用的是什么 DBMS?您可以使用哪些编程语言?
-
正在使用 oracle 数据库并正在使用 Java 编程
标签: java database file select output