create or replace procedure write_sample
is
fh utl_file.file_type;
i number(4);
begin
fh := utl_file.fopen('/tmp/test.dat','test','w');
for rec in (select field1 from table1) loop
utl_file.put_line(fh,rec.field1);
end loop;
utl_file.fclose(fh);
end;
/
Robbie
"The rule is, not to besiege walled cities if it can possibly be avoided" -- Art of War
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.