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 =:data_date
spool off
最后一个字段无分隔符,不然不能装载数据
原文地址:https://www.cnblogs.com/yuchunju/p/10794435.html
时间: 2024-10-11 09:16:17