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.

相关推荐
柊二三9 小时前
XML的简略知识点
xml·数据库·oracle
拉姆哥的小屋15 小时前
用 Flask 打造宠物店线上平台:从 0 到 1 的全栈开发实践
数据库·oracle·flask
-XWB-16 小时前
【Oracle】套接字异常(SocketException)背后隐藏的Oracle问题:ORA-03137深度排查与解决之道
数据库·oracle
睿思达DBA_WGX16 小时前
由于主库切换归档路径导致的 Oracle DG 无法同步问题的解决过程
运维·数据库·oracle
!chen17 小时前
Oracle 19.20未知BUG导致oraagent进程内存泄漏
数据库·oracle·bug
技术卷18 小时前
详解力扣高频SQL50题之1164. 指定日期的产品价格【中等】
sql·leetcode·oracle
qq_5298353518 小时前
Mysql中的锁
数据库·mysql·oracle
技术卷1 天前
详解力扣高频SQL50题之610. 判断三角形【简单】
sql·leetcode·oracle
技术卷1 天前
详解力扣高频SQL50题之619. 只出现一次的最大数字【简单】
sql·leetcode·oracle
hqxstudying1 天前
J2EE模式---服务层模式
java·数据库·后端·spring·oracle·java-ee