SQL plus |列调整在假脱机文件中

时间:2017-10-09 12:39:08

标签: oracle sqlplus

我正在使用SQL中的.csv文件以及包含一些数据的文件进行假脱机。

我的sql plus的设置是:

sqlplus -s xxxx/xxxx@xxx <<-eod >> $logdir/xxxx.log
set feedback off
    set pages 5000
    set trims on
    set linesize  500
    set term off heading on

    column SP                                       format a10
    column commercial_code      format a50
    column rateplan             format a50
    column priceplanoffer       format a50
    column payment_type         format a50
    column traffictype          format a50
    column direction            format a50
    column onnet_offnet         format a50
    column clasification        format a50
    column cdr_count            format 9999999999
    column event_count          format 9999999999
    column volume               format 9999999999
    column rated_volume         format 9999999999
    column duration             format 9999999999
    column rated_duration       format 9999999999
    column charged_amount       format 9999999999

输出是这样的(不是100%正确): https://ibb.co/furf1G

很抱歉这个链接,imgur不允许我在这里发布图片。

在任何情况下,所需要的是将列CHARGED_AMOUNT 下一个放在RATED_DURATION列而不是SP下。

我认为这必须是sqlplus参数的东西,能帮帮我吗? 我怎么能做到这一点?

非常感谢!

1 个答案:

答案 0 :(得分:0)

我编辑了set linesize 500到900并重新启动了该过程。检查时所需的输出正常。