Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> SQL*Plus: How can I write each record to a separate file

SQL*Plus: How can I write each record to a separate file

From: <zrwcvhsosoik001_at_sneakemail.com>
Date: 7 Sep 2006 22:38:10 -0700
Message-ID: <1157693890.455984.274350@e3g2000cwe.googlegroups.com>


Hi,

I need to select a set of records, and then write each record to a separate file.
Something like this (in pseudo code). The idea is to write the salary of each employee to a separate file with the name of the employee.

FOR rec in select * from emp LOOP
  create file with filename rec.ename
  write rec.sal to file
  close file
END LOOP Is this possible using SQL*Plus? Or would you recommend another tool.

Thanks! Received on Fri Sep 08 2006 - 00:38:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US