pl/sql development 查询的数据复制到excel

Posted 江清风

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pl/sql development 查询的数据复制到excel相关的知识,希望对你有一定的参考价值。

chr(9)tab键
chr(10)换行
chr(13)回车
chr(13)&chr(10)回车换行


查询的数据复制到excel,若一个字段值占2个或2个以上单元格,则可能有上述符号,可用instr查出,可用replace删掉
select n_id,s_name from t_a t where stat_time=20171206 and instr(s_name,chr(‘10‘))>0;
select n_id,s_name from t_a t where stat_time=20171206 and instr(s_name,chr(‘13‘))>0;
select n_id,s_name from t_a t where stat_time=20171206 and instr(s_name,chr(‘09‘))>0;

select n_id,s_name,replace(s_name,chr(9)) a2 from t_a t where stat_time=20171206 and instr(s_name,chr(‘09‘))>0;








以上是关于pl/sql development 查询的数据复制到excel的主要内容,如果未能解决你的问题,请参考以下文章

PL/SQL Developer 查询中程序停止响应

Oracle SQL Developer - 使用 Job Wizard PL/SQL 的基本选择查询

在 PL/SQL Developer 中运行的日期查询显示时间,但在 Oracle SQL Developer 中不显示

PL/SQL Developer实现双击table表名查询

PL/SQL 和 SQL Developer 的结果不同

pl/sql developer 中文字段显示乱码 解决办法