Home >Database >Mysql Tutorial >oracle使用sql脚本生成csv文件案例学习

oracle使用sql脚本生成csv文件案例学习

WBOY
WBOYOriginal
2016-06-07 17:56:00915browse

在oracle中用sql脚本生成csv文件,很多的朋友都想实现这样的功能,所以本文的出现是很有必要的,感兴趣的你可千万不要错过,希望本文可以帮助到你

脚本内容如下:
代码如下:
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;
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn