SET ECHO OFF SET MARKUP HTML ON SPOOL ON SPOOL emp2.html SELECT * FROM emp; SPOOL OFF SET MARKUP HTML OFF SET ECHO ON EXIT