0

単一の 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;
}
4

1 に答える 1