Oracle 假脱机到 CSV 格式问题

Oracle Spool to CSV Formatting Issue

我希望使用 Oracle 假脱机将两列 table 导出到 CSV。当我执行导出时,第一列格式很好,但是第二列溢出到 XLS 中的第三列。 DB中第二列的内容比较长

下面是我正在尝试的:

column MachineName Format a20;
column OperatorName Format a32000;
set colsep ,
set echo off
set feedback off
set heading on
set linesize 32000
set pagesize 0
set termout off
set trim off
set trimspool on
set array 100
set underline off
set wrap off
set flush off
set verify off
set embedded on

结果如下。在此示例中,"Lucio Victor" 应与 "Revolo Borja" 在同一列中。 (在数据库中,这一切都在一栏中)

MACHINENAME         ,OPERATORNAME
CM101               ,Revolo Borja, Lucio Victor
CM101               ,Revolo Borja, Lucio Victor
CM101               ,Revolo Borja, Lucio Victor
CM101               ,Revolo Borja, Lucio Victor

结果应该是

MACHINENAME         ,OPERATORNAME
CM101               ,Revolo Borja Lucio Victor
CM101               ,Revolo Borja Lucio Victor
CM101               ,Revolo Borja Lucio Victor
CM101               ,Revolo Borja Lucio Victor

将 " 放在您的 operatorname 列周围,excel 将逗号读作字段分隔符