set verify off;

set colsep ‘分隔符’;

set echo off;

set feedback off;

set heading off;

set pagesize 0;

set linesize 10000;

set numwidth 26;

set termout off;

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;有变量。无变量可省略

相关文章:

  • 2021-08-13
  • 2021-10-05
  • 2021-11-30
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-12-03
  • 2021-08-23
相关资源
相似解决方案