Quantcast
OracleBrains.Com header image 2

HTML output from SQL*Plus

December 28th, 2006 by Rajender Singh · No Comments

This information for the guys who are new to SQL*Plus.

One can generate static HTML pages from SQL*Plus (8.1.6 and above) by setting the MARKUP option to HTML ON.

This can be done following two ways:

1. From command line when opening sqlplus specifying -MARKUP “HTML ON” as parameters

Example:

C:\>SQLPLUS -MARKUP “HTML ON”

2. From SQL*Plus, through “SET MARKUP HTML ON” command.

Example:

SQL> SET MARKUP HTML ON

SQL&gt> SPOOL C:\dept.html

SQL&gt> SELECT * FROM dept;

SQL&gt> SPOOL OFF


Tags: SQL*Plus

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Comment moderation is enabled. Your comment may take some time to appear.