当前位置:   article > 正文

creating an HTML file with SQL*Plus

creating an HTML file with SQL*Plus

Here is an example of creating an HTML file with SQL*Plus:

1. Create a script, call it runhtml.sql, with the following code:

set ver off
set term off
set markup html on spool on

spool <drive>:\ex1.html

select * from table_name;
select * from table_name;

spool off

2. Execute this script using:

SQL> @runhtml.sql

3. Open the output file ex1.html, which, in our example, it is saved on the C:\ drive.

4. Now you can import this ex1.html in Excel 2000. You do not need to create a csv file anymore. You can also use an html file.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/706789
推荐阅读
相关标签
  

闽ICP备14008679号