I realized that sqlplus is not intended to handle elaborate formatting but I'd like to achieve the following if possible: a list of lookup table values with page break after each table.
It should look like this based on select statements like:
select table.field1, table.field2 from lookuptable;
Countries
code value
1001 Canada
1002 Mexico
1003 USA
[page break]
Cities
code value
1001 Boston
1002 New York
1003 Seattle
[page break]
I've tried spooling it but I get the SQL> prompt included in the spooled file and can't figure out how to insert a break that will be understood when I open the file in Word.
It should look like this based on select statements like:
select table.field1, table.field2 from lookuptable;
Countries
code value
1001 Canada
1002 Mexico
1003 USA
[page break]
Cities
code value
1001 Boston
1002 New York
1003 Seattle
[page break]
I've tried spooling it but I get the SQL> prompt included in the spooled file and can't figure out how to insert a break that will be understood when I open the file in Word.