.put_line(tempcard);
-- dbms_output.put_line(cardno);
end;
--使用UTL_FILE包读写文件
create directory MY_DIR as d: emp;
create directory MY_DIR2 as d: emp2;
declare
--定义文件对象
myfile utl_file.file_type;
--定义变量 用来存储每读出一行的数据
linestr varchar2(200);
begin
--打开文件
myfile:= utl_file.fopen(MY_DIR,oracle.log,r);
--进行读取(循环)
loop
utl_file.get_line(myfile,linestr);
dbms_output.put_line(linestr);
end loop;
exception
|