日期:2014-05-17 浏览次数:21018 次
create or replace procedure prc_orctoexcel IS
l_file utl_file.file_type;
a VARCHAR2(1024);
BEGIN
l_file :=utl_file.fopen('SJQYDIR','444.xls','w');
utl_file.put_line(l_file,'测试oracle数据导入excel');
utl_file.put(l_file,'111'
------解决方案--------------------
CHR(9));
utl_file.put(l_file,'222'
------解决方案--------------------
CHR(9));
utl_file.put(l_file,'333'
------解决方案--------------------
CHR(9));
utl_file.fclose(l_file);
l_file :=utl_file.fopen('SJQYDIR','444.xls','r');
utl_file.get_line(l_file,a);
dbms_output.put_line(a);
utl_file.fclose(l_file);
end prc_orctoexcel;