SQL Language (MOSC)

MOSC Banner

Sql output to .csv not in format

edited Dec 21, 2013 12:31AM in SQL Language (MOSC) 5 commentsAnswered
Hi Gurus,
   when converting SQL output to .csv , I am getting scrambled output. I was trying since 2 days to fix it but some or other is missing in format.
Could someone help me in solving it. 

  I  really appreciate your help.

Following is the sql query.

alter session set nls_date_format='DD_MON_YYYY HH24:MI:SS';
set lines 500 pages 0 veri off echo off feed off trimspool on termout off timing off
spool &1

select '"dateexpressed","email","readyforservicedate","adborid","segment",'||
'"title","firstname","lastname","contactnumber","secondarynumber","addrunit",'||
'"addrstreetnum","addrstreetname","addrstreettype","addrsuburb","addrstate",'||
'"addrpostcode","existingcustomer","businessname","hasaccountmanager",'||

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center