相关操作代码如下:
set linesize 3000;
set heading off;
set feedback off;
set term off;
set pagesize 0;
set trimspool on;
spool a.csv;
select c1_name||','||c2_name from dual;
select c1||','||c2 from tbtest
spool off;
set linesize 3000;
set heading off;
set feedback off;
set term off;
set pagesize 0;
set trimspool on;
spool a.csv;
select c1_name||','||c2_name from dual;
select c1||','||c2 from tbtest
spool off;