Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

spooling output to xls file

1023048Apr 11 2014 — edited Apr 11 2014

Hi,

I am spooling the output of a table to excel file. I am using the below spooling commands:

set pages 20000

set lines 9999

set markup html on;

spool RECIPE_LINK_F3.xls

select * from RECIPE_LINK;

spool off;

set markup html off

exit

But doing so, some of the text column data gets changed to DATE format.in the excel file. Any idea why this happens, and what is the best way to ensure that the data does not change when it is spooled into excel file.

I cannot specify each column in my select statement as I have many tables and each of them have many different columns.

Please let me know what is the best way to get the correct data out into excel file?

Thanks!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 9 2014
Added on Apr 11 2014
7 comments
17,664 views