Interactions with PL/SQL(2) How to read multiple lines from the text file using PL/SQL

读取TXT文件并显示......[@more@]

declare
f utl_file.file_type;
s varchar2(200);
begin
f := utl_file.fopen('e:test','sample.txt','R');
loop
utl_file.get_line(f,s);
dbms_output.put_line(s);
end loop;
exception
when NO_DATA_FOUND then
utl_file.fclose(f);

end;

请使用浏览器的分享功能分享到微信等