Académique Documents
Professionnel Documents
Culture Documents
f_in utl_file.file_type;
s_in varchar2(10000);
string varchar2(32000);
begin
f_in := utl_file.fopen('SAMPLEDIR','input.txt','R');
loop
begin
utl_file.get_line(f_in,s_in);
EXCEPTION
EXIT;
end;
end loop;
utl_file.fclose(f_in);
end;
[/sql]
begin
for rec in (select title, text from mytable)
loop DBMS_XSLPROCESSOR.clob2file(rec.text, 'DUMP_SOURCES', rec.title ||'.txt'); end loop;
end;