jasontektips
Programmer
Hi,
I have a simple script to spool all records(data) from a table into an EXCEL file. But the header(ie. column names) gets truncated if the data field length is shorter than the column name. See below:
spool d:\testtest.xls;
set markup html on;
set pagesize 9999;
select * from my_table;
set markup html off;
spool off;
What should I add to the above to ensure the column names of the header record will not be truncated?
Many thanks.
I have a simple script to spool all records(data) from a table into an EXCEL file. But the header(ie. column names) gets truncated if the data field length is shorter than the column name. See below:
spool d:\testtest.xls;
set markup html on;
set pagesize 9999;
select * from my_table;
set markup html off;
spool off;
What should I add to the above to ensure the column names of the header record will not be truncated?
Many thanks.