当前位置: 技术问答>linux和unix
按TAB键分割csv文件
来源: 互联网 发布时间:2016-05-12
本文导语: 在存储过程里: 我用 BEGIN v_FileHandle:=UTL_FILE.FOPEN('/TMP/','utl.file.csv', 'w'); UTL_FILE.PUT_LINE(v_FileHandle,'THIS IS LINE 1!'); UTL_FILE.PUT_LINE(v_FileHandle,'THIS IS LINE 2!'); . . . csv 文件: THIS IS LINE 1! THIS IS LINE 2! 我现在想让它...
在存储过程里:
我用
BEGIN
v_FileHandle:=UTL_FILE.FOPEN('/TMP/','utl.file.csv', 'w');
UTL_FILE.PUT_LINE(v_FileHandle,'THIS IS LINE 1!');
UTL_FILE.PUT_LINE(v_FileHandle,'THIS IS LINE 2!');
.
.
.
csv 文件:
THIS IS LINE 1!
THIS IS LINE 2!
我现在想让它按tab分割形势输出:
THIS IS LINE 1! (按一下tab键)THIS IS LINE 2!
(csv文件用EXCEL打开)
急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急!!!!!!!!!
我用
BEGIN
v_FileHandle:=UTL_FILE.FOPEN('/TMP/','utl.file.csv', 'w');
UTL_FILE.PUT_LINE(v_FileHandle,'THIS IS LINE 1!');
UTL_FILE.PUT_LINE(v_FileHandle,'THIS IS LINE 2!');
.
.
.
csv 文件:
THIS IS LINE 1!
THIS IS LINE 2!
我现在想让它按tab分割形势输出:
THIS IS LINE 1! (按一下tab键)THIS IS LINE 2!
(csv文件用EXCEL打开)
急急急急急急急急急急急急急急急急急急急急急急急急急急急急急急!!!!!!!!!
|
select 'HELLO'||CHR(9)||' WORLD 'from dual;
UTL_FILE.PUT_LINE會加一個換行符
UTL_FILE.PUT 不會加換行符
UTL_FILE.PUT_LINE會加一個換行符
UTL_FILE.PUT 不會加換行符