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.

相关推荐
MXM_7773 分钟前
laravel 并发控制写法-涉及资金
java·数据库·oracle
2301_800256112 小时前
第九章:空间网络模型(空间网络查询、数据模型、Connected、with Recursive、pgRouting)
网络·数据库·算法·postgresql·oracle
oMcLin13 小时前
如何在Oracle Linux 8.4上搭建并优化Kafka集群,确保高吞吐量的实时数据流处理与消息传递?
linux·oracle·kafka
l1t15 小时前
NineData第三届数据库编程大赛:用一条 SQL 解数独问题我的参赛程序
数据库·人工智能·sql·算法·postgresql·oracle·数独
菜鸟笔记本16 小时前
linux设置定时备份mysql数据
linux·mysql·oracle
小宇的天下16 小时前
Calibre nmDRC Results(19-1)
服务器·数据库·oracle
晴天¥18 小时前
Oracle如何在DBeaver上进行登录
数据库·oracle
2301_8002561118 小时前
事务处理-同步与调度-两阶段锁-隔离级别
数据库·oracle
施嘉伟21 小时前
Oracle SQL Profile 固化执行计划实战说明
数据库·sql·oracle