set verify off;變量
set colsep ‘分隔符’;date
set echo off;select
set feedback off;im
set heading off;數據
set pagesize 0;db
set linesize 10000;di
set numwidth 26;dba
set termout off;co
set trimout on;分割
set trimspool on;
spool ‘/etl/a.txt’
select
trim(字段)||’分割符’||
trim(字段)||’分割符’||
trim(字段)
from a
where date between ‘&1’ and ‘&2’;
spool off;
最後一個字段無分隔符,否則不能裝載數據
set verify off;有變量。無變量可省略