例子
[oracle@localhost ~]$ cat data.sql
set echo off
set feedback off
set linesize 100
set pagesize 0
set sqlprompt ''
set trimspool on
spool data.csv
select id || ',' || val from testtab;
spool off
exit
[oracle@localhost ~]$
本文转自健哥的数据花园博客园博客,原文链接:http://www.cnblogs.com/gaojian/p/3729391.html,如需转载请自行联系原作者