I am running an sql script in oracle to spool a csv file.
I am using the following set up:
Expand|Select|Wrap|Line Numbers
- Define name='JOE'
- spool names.txt
- set linesize 200
- set pagesize 50000
- set heading off
- set termout off
- Select 'Names' from dual;
- select '&Name' from user1;
- select surname from user1;
- SPOOL OFF;
Names
old 1: select '&Name' from user1
new 1: select 'JOE' from user1
JOE
Bloggs
It is giving me the correct values but i dont want the lines that have the old and new value. i also want to get rid of the space between Names and Joe.
Any ideas would be greatly appreciated!