http://uhesse.com/2011/06/30/sqlplus-output-in-nice-html-format/
----------------------------------------
-- get the last SQL*Plus output in HTML
-- after Tanel Poder
----------------------------------------
set termout off
set markup HTML ON HEAD " -
-
" -
BODY "" -
TABLE "border='1' align='center' summary='Script. output'" -
SPOOL ON ENTMAP ON PREFORMAT OFF
spool myoutput.html
l
/
spool off
set markup html off spool off
host "E:\Program Files\Mozilla Firefox\firefox.exe" myoutput.html
set termout on
SQL> help l
LIST
----
Lists one or more lines of the most recently executed SQL command
or PL/SQL block which is stored in the SQL buffer. Enter LIST with
no clauses to list all lines. In SQL*Plus command-line you can also
use ";" to list all the lines in the SQL buffer. The buffer has no
command history list and does not record SQL*Plus commands.
L[IST] [n | n m | n * | n LAST | * | * n | * LAST | LAST]
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/267265/viewspace-741205/ ,如需转载,请注明出处,否则将追究法律责任。