Generating HTML Reports from SQL*Plus

This post explains how to generate a HTML reports from your Sql *plus query results. You can produce HTML output in AN interactive SQL*Plus session victimization the SET MARKUP command. you\’ll be able to embrace AN embedded sheet, or the other valid text within the HTML tag.

SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON –

Enter a SQL query:

Enter the SPOOL OFF command:

SPOOL OFF

The and tags area unit appended to the spool file, report.html, before it’s closed.

The output from report.sql may be a file, report.html, which will be loaded into an online browser. Open report.html in your application program. It ought to seem one thing just like the following:

oracle-reports

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs