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

  1. Execute this script using:

SQL> @runhtml.sql

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

  2. 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.

相关推荐
zongzizz8 小时前
Oracle 11g 两节点rac在机房断电重启后PL/SQL和客户端连接数据库报错ORA-12541
数据库·oracle
鸽芷咕11 小时前
告别迁移焦虑:KingbaseES如何搞定Oracle复杂的层次查询与伪列?
数据库·oracle
当代红领巾11 小时前
Oracle 中的物理备份
数据库·oracle
EnCi Zheng12 小时前
J7A-已有数据表如何安全添加新字段 [特殊字符]️
数据库·安全·oracle
mldlds14 小时前
MySQL四种备份表的方式
mysql·adb·oracle
醇氧15 小时前
第一、二、三范式学习
数据库·学习·oracle
Maverick0615 小时前
Oracle PDB 概念与架构
运维·数据库·oracle
新猿一马15 小时前
服务端安全开发注意事项
数据库·web安全·oracle
小李来了!16 小时前
Oracle、MySQL、SQL server介绍及有何区别
数据库·mysql·oracle·sqlserver