当前位置: 数据库>oracle
oracle使用sql脚本生成csv文件案例学习
来源: 互联网 发布时间:2014-09-07
本文导语: 脚本内容如下: 代码如下: 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;
代码如下:
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;