Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-07 17:56:00
Original
879 people have browsed it

在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;
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!