Add blank line after header
Saurabh, June 13, 2019 - 4:00 pm UTC
Hi Chris,
I am using CMC tool which directly call oracle stored procedure to generate CSV/xlsx file.
However I tried in below way to achieve the requirement
Create table T1 (
A number,
B number
);
Insert into T1 values (1,2);
Insert into T1 values (3,4);
Select * from T1;
A. B
-------
1 2
3 4
Query
----------
With ab as (
Select a,b,rownum as rnum from T1),
T11 as (
Select chr(13) || chr(10) || a as a,b from ab where rnum =1),
T12 as
(Select a,b from ab where rnum > 1)
Select a,b from t11
Union
Select a,b from t12;
June 13, 2019 - 5:09 pm UTC
CMC tool?
Chuck Jolley, June 13, 2019 - 9:25 pm UTC
select source_row || decode(rownum,
1, chr(13)||chr(10),
'')
from source
The blank line can be part of the first row because you are outputting to text
June 14, 2019 - 3:00 am UTC
nice touch