Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> SQL*Plus question
Hello all,
I have the following sql file running in SQL*Plus:
spool a.txt
select columnA || ',', columnB || ',', columnC || ',', columnD from
AAA;
spool off
Results: (content of a.txt)
columnA, columnB, columnC, columnD 11, ABC, 01-Jan-1998, Testing 1234, DEFG, 01-Jan-1999, Hello This is testing 134, A, , TestingTesting...
However, I want to use SQL*PLUS to get the following results:
Results: (content of a.txt)
columnA,columnB,columnC,columnD
11,ABC,01-Jan-1998,Testing
1234,DEFG,01-Jan-1999,Hello This is testing
134,A,,Testing Testing
i.e., no space between two column values. Is it possible to do that in running sql file in SQL*Plus?
Thanks,
Jimmy
Received on Thu May 13 1999 - 22:35:38 CDT