set echo off --在用start命令执行一个sql脚本时,是否显示脚本中正在执行的SQL语句
set feedback off --是否显示当前sql语句查询或修改的行数
set newpage none --会在页和页之间没有任何间隔
set verify off --
set pagesize 0 --分多少页
set term off --在用spool命令将一个大表中的内容输出到一个文件中时,将内容输出在屏幕上会耗费大量的时间,设置set termspool off后,则输出的内容只会保存在输出文件中,不会显示在屏幕上,极大的提高了spool的速度。
set trims on --将SPOOL输出中每行后面多余的空格去掉
set linesize 600 --设置屏幕显示行宽,默认100
set heading off --禁止输出列标题
set timing off --默认为OFF,设置查询耗时,可用来估计SQL语句的执行时间,测试性能
set numwidth 38
SPOOL D:\iProcess\ewi_data_drawing-wi_info_blob.txt
select Utl_Raw.Cast_To_Varchar2(Dbms_Lob.Substr(wi_info_blob, 2000, 1)) C1,Utl_Raw.Cast_To_Varchar2(Dbms_Lob.Substr(wi_info_blob,2000, 2001)) C2,Utl_Raw.Cast_To_Varchar2(Dbms_Lob.Substr(wi_info_blob,2000, 4002)) C3,Utl_Raw.Cast_To_Varchar2(Dbms_Lob.Substr(wi_info_blob,2000, 6003)) C4,Utl_Raw.Cast_To_Varchar2(Dbms_Lob.Substr(wi_info_blob,2000, 8004)) C5,Utl_Raw.Cast_To_Varchar2(Dbms_Lob.Substr(wi_info_blob,2000, 10005)) C6,Utl_Raw.Cast_To_Varchar2(Dbms_Lob.Substr(wi_info_blob,2000, 12006)) C7,Utl_Raw.Cast_To_Varchar2(Dbms_Lob.Substr(wi_info_blob,2000, 14007)) C8 from at_tools.ewi_data_drawing WHERE ROWNUM<2;
SPOOL OFF