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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Spool file to html

2742776Aug 30 2014 — edited Sep 1 2014

Hi,

I have written a pl/sql code to retrive some data from database and spool this in .lst file.But I need .html file so I changed the code and use command "set markup html on".But when the .html file is created its format is changed compare to .lst file which is previously created i.e space between the two character and <br> tag shows after every line.

The code is like that:

Set serveroutput on

set pages 400

set line 500

set markup html on

spool test.html

Declare

<A cursor is defined here>

Begin

A loop which retrive data from cursor and format the data using lpad, rpad.


end

/

spool off

Please suggest how to generate .html file without changing its format.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2014
Added on Aug 30 2014
4 comments
618 views